Could not select question $q SELECT aaa_questions.*, aaa_categories.Category, aaa_users.handle, aaa_users.UserNumber, aaa_users.Image FROM aaa_questions, aaa_categories, aaa_users WHERE QuestionNumber = green smoke 2013?a=green smoke 20 AND aaa_questions.CategoryID = aaa_categories.CategoryID AND aaa_users.UserNumber = aaa_questions.UserNumberYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smoke 2013?a=gr' at line 1