Error on line 1477 in file plugins/Contents.php

Point of failure:

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 (`lang` = 'fr' || `lang` = '') ORDER BY `order` ASC' at line 1

0. VC_Routing::process
1. Pages->category
2. Plugin_Custom->get_products
3. Plugin_Contents->get_list
4. VC_ActiverecordDriver->find