/home/funch/http/framework/classes/DBM.class.php:157 => 1064 : query Exception!!! : 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 accept = '1' ORDER BY e.eid DESC' at line 1 | query> SELECT e.*,r.uid FROM `funch_entry` AS e LEFT JOIN `funch_raiser` AS r ON e.rid = r.rid WHERE r.uid = AND accept = '1' ORDER BY e.eid DESC