--> PHP Fatal error: 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 '' at line 1 :: select count(*) as total FROM orders o, orders_total ot, orders_status s WHERE o.customers_id = 1 AND o.orders_id = ot.orders_id AND ot.class = 'ot_total' AND s.orders_status_id = (SELECT orders_status_id FROM orders_status_history osh WHERE osh.orders_id = o.orders_id AND osh.customer_notified >= 0 ==> (as called by) /home/xenbwyun/public_html/yourownfont.com/includes/classes/split_page_results.php on line 78 <== in /home/xenbwyun/public_html/yourownfont.com/includes/classes/db/mysql/query_factory.php on line 170.

Error when viewing Order history when logged in as customer. What can I do to fix this?