PDOException: 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 'AN) ORDER BY products_name, products_quantity >= 4 DESC, products_quantity > 0 D' at line 67 in /var/domains/test-test.bazaarofmagic.eu/application/php/models/database.php:176
Stack trace:
#0 /var/domains/test-test.bazaarofmagic.eu/application/php/models/database.php(176): PDO->prepare('SELECT SQL_CALC...')
#1 /var/domains/test-test.bazaarofmagic.eu/application/php/models/search.php(56): Models\Database->query('SELECT SQL_CALC...', Array)
#2 /var/domains/test-test.bazaarofmagic.eu/application/php/models/card.php(227): Models\Search->go()
#3 /var/domains/test-test.bazaarofmagic.eu/application/php/controllers/product.php(373): Models\Card->recommendations()
#4 /var/domains/test-test.bazaarofmagic.eu/application/lib/bcosca/fatfree-core/base.php(1997): Controllers\Product->similar(Object(Base), Array, '\\Controllers\\pr...')
#5 /var/domains/test-test.bazaarofmagic.eu/application/lib/bcosca/fatfree-core/base.php(1796): Base->call(Array, Array, Array)
#6 /var/domains/test-test.bazaarofmagic.eu/application/php/bootstrap.php(253): Base->run()
#7 /var/domains/test-test.bazaarofmagic.eu/application/public/index.php(16): require_once('/var/domains/te...')
#8 {main}PDOException: 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 'AN) ORDER BY products_name, products_quantity >= 4 DESC, products_quantity > 0 D' at line 67 in /var/domains/test-test.bazaarofmagic.eu/application/php/models/database.php:176
Stack trace:
#0 /var/domains/test-test.bazaarofmagic.eu/application/php/models/database.php(176): PDO->prepare('SELECT SQL_CALC...')
#1 /var/domains/test-test.bazaarofmagic.eu/application/php/models/search.php(56): Models\Database->query('SELECT SQL_CALC...', Array)
#2 /var/domains/test-test.bazaarofmagic.eu/application/php/models/card.php(247): Models\Search->go()
#3 /var/domains/test-test.bazaarofmagic.eu/application/php/controllers/product.php(373): Models\Card->recommendations()
#4 /var/domains/test-test.bazaarofmagic.eu/application/lib/bcosca/fatfree-core/base.php(1997): Controllers\Product->similar(Object(Base), Array, '\\Controllers\\pr...')
#5 /var/domains/test-test.bazaarofmagic.eu/application/lib/bcosca/fatfree-core/base.php(1796): Base->call(Array, Array, Array)
#6 /var/domains/test-test.bazaarofmagic.eu/application/php/bootstrap.php(253): Base->run()
#7 /var/domains/test-test.bazaarofmagic.eu/application/public/index.php(16): require_once('/var/domains/te...')
#8 {main}