Catched error 40642000: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND day_id=7
AND active='1'
...' at line 3
in /var/www/vhosts/osava.ua/osava-sushi.com.ua/protected/modules/product/ProductController.php on line 84.
Query: 'SELECT * FROM day_event
WHERE catalog_id=
AND day_id=7
AND active='1'
ORDER BY id DESC
'