BAILING OUT.............. SELECT * FROM Products p WHERE p.brandID = AND p.out_of_stock = '0' ORDER BY p.prod_name [nativecode=1064 ** 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 p.out_of_stock = '0' ORDER BY p.prod_name' at line 1] DB Error: syntax error