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 data >= DATE_SUB(CURDATE(), INTERVAL 12 MONTH) ORDER BY rand() limit 100' at line 1