MySQL query failed (SELECT * FROM smg_maint_items, smg_veh_maint_items WHERE smg_veh_maint_items.veh_maint_active= '1' AND smg_veh_maint_items.maint_item_id=smg_maint_items.maint_item_id AND smg_veh_maint_items.interval_id=6 AND smg_veh_maint_items.veh_interval_id= AND maint_item_type_id=1 ORDER BY veh_maint_rank, maint_item_name)
1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND maint_item_type_id=1 ORDER BY veh_maint_rank, maint_item_name' at line 1