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 '22,7633,7855 AND customerid = '6246' AND horse_draft != 'Draft'' at line 1