Notice: Undefined index: adminid in /usr/local/apache/vhosts/topdawgpetsupply.com/www/topdawgpetsupply.com/dropshipping/adminindex.php on line 38

Can't execute query

SELECT totalCost, purchaseDate FROM invoices WHERE distributorID= AND purchaseDate > 1327968000 AND userID != 0 ORDER BY purchaseDate

MySQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND purchaseDate > 1327968000 AND userID != 0 ORDER BY purchase

This script cannot continue, terminating.