Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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
AND birthday BETWEEN AND
AND h' at line 4' in /home/truerela/truerelationships.com.ua/www/config/connect.php:480
Stack trace:
#0 /home/truerela/truerelationships.com.ua/www/config/connect.php(480): PDO->query('SELECT * \n ...')
#1 /home/truerela/truerelationships.com.ua/www/views/menu/mensdatabase.phtml(43): DbWork->getAnkets(1, 20, NULL, NULL, NULL, NULL, '', '', 2)
#2 /home/truerela/truerelationships.com.ua/www/controllers/menu.php(40): require_once('/home/truerela/...')
#3 /home/truerela/truerelationships.com.ua/www/core/router.php(30): include_once('/home/truerela/...')
#4 /home/truerela/truerelationships.com.ua/www/index.php(3): require_once('/home/truerela/...')
#5 {main}
thrown in /home/truerela/truerelationships.com.ua/www/config/connect.php on line 480