Fatal 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 e.statecode = s.statecode ORDER BY e.order_by' at line 6: SELECT e.*, s.statename as state FROM att_attorney_educations e, att_states s WHERE attorney_id = AND e.statecode = s.statecode ORDER BY e.order_by in /home/maddin/public_html/admin/common/db.php on line 234