Invalid SQL: SELECT id FROM chatbox WHERE date LIKE '[31/03|19:%' AND name = 'Weir T'karr' AND comment = ':p ' mysql 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 'karr' AND comment = ':p '' at line 1 mysql error number: 1064