{embed=home/header} MySQL ERROR:

Error Number: 1064

Description: 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 member_id = 0' at line 1

Query: select count(purchase_id) as count from exp_file_purchases where file_id = and member_id = 0