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 '' at line 3
Error No: 1064
SELECT distinct c.* FROM `customer` c INNER JOIN `customer_favorite` cf ON c.customerid = cf.favoritecustomerid WHERE 1=1 AND cf.customerid =