Error on line 1459 in file plugins/Contents.php

Point of failure:
VC_ActiverecordDriver::find()

Message:
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

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