mysql_errno: 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(l.kol) kol_count, sum(l.kol) kol_sum from orders_list l inner join orders o on (l.orderid=o.id) where o.reserv='1' and o.office_id=14 and l.productid=