Fatal error: Uncaught PDOException: 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 otb.otb_state=1
order by otb.otb_prim asc, otu.otu_no asc' at line 8 in /var/www/vhosts/client.xspeaking.com/httpdocs/m_ot/ot_list.php:15
Stack trace:
#0 /var/www/vhosts/client.xspeaking.com/httpdocs/m_ot/ot_list.php(15): PDO->query()
#1 /var/www/vhosts/client.xspeaking.com/httpdocs/m_ot/ot.view.php(70): include('...')
#2 /var/www/vhosts/client.xspeaking.com/httpdocs/_inc/func_lib.php(29): include('...')
#3 /var/www/vhosts/client.xspeaking.com/httpdocs/index.php(3): RenderView()
#4 {main}
thrown in /var/www/vhosts/client.xspeaking.com/httpdocs/m_ot/ot_list.php on line 15