Time : 11:45:38
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 payment_due_date >= '2019-01-01' AND payment_due_date <= '2019-01-08' and p.' at line 1
Raw SQL : select p.*,b.* from tbl_bank_payment as p join tbl_bankaccountdetail as b join tbl_vehicle as v where p.bankaccountdetail_id = b.bankaccountdetail_id  and b.vehicle_id = v.vehicle_id and  AND payment_due_date >= '2019-01-01' AND payment_due_date <= '2019-01-08' and p.payment_status='0'

Time : 06:32:41
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 'as filename	 from tbl_customer as c left join tbl_vehicle as v ON c.user_id = v.' at line 1
Raw SQL : select c.*,v.plateno,v.plan_id, v.contract_filename, v. as filename	 from tbl_customer as c left join tbl_vehicle as v ON c.user_id = v.user_id where v.status='1'  ORDER BY v.vehicle_id DESC
