Could not successfully run query () from DB: 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 id_usu, (select printable_name from tbl_paises where tbl_paises.id_pais=...' at line 1
SELECT a.id_factura, a.id_usuario, a.id_vendedor, a.id_shopping, a.fecha_apertura, a.fecha_cierre, a.delivery_first_name, a.delivery_last_name, a.delivery_address1, a.delivery_address2, a.delivery_pueblo, a.delivery_id_estado, a.delivery_id_pais, a.delivery_code_postal, a.customers_first_name, a.customers_last_name, a.customers_address1, a.customers_address2, a.customers_pueblo, a.customers_id_estado, a.customers_id_pais, a.customers_codigo_postal, a.shipping_cost, a.Shipping_type, b.nombre_usuario as nomb_usu, b.apellido as apell_usu, (select eway_transaction_number from tbl_transacciones_con_banco where tbl_transacciones_con_banco.id_factura=a.id_factura ) as num_transaccion, (select id_evento from tbl_eventos_factura where tbl_eventos_factura.id_factura=a.id_factura order by id_evento DESC limit 1) as id_event, (select comentario from tbl_eventos_factura where tbl_eventos_factura.id_factura=a.id_factura order by id_evento DESC limit 1) as coment_event, (select tipo_usuario from tbl_usuario where tbl_usuario.id_usuario=) as id_usu, (select printable_name from tbl_paises where tbl_paises.id_pais=a.delivery_id_pais) as pais_delivery, (select nombre_estado from tbl_estados where tbl_estados.id_estado=a.delivery_id_estado) as edo_delivery, (select printable_name from tbl_paises where tbl_paises.id_pais=a.customers_id_pais) as pais_customer, (select nombre_estado from tbl_estados where tbl_estados.id_estado=a.customers_id_estado) as edo_customer FROM tbl_factura a, tbl_usuario b ORDER BY id_factura DESC LIMIT 0,

SQL Error [256] (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 id_usu, (select printable_name from tbl_paises where tbl_paises.id_pais=...' at line 1
Query :
On line 260 in file /controladores/controladores_ajax/ajax_controller_facturas_paginador.php , PHP 5.6.40 (Linux)
Aborting...