Error Number: 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 PI.pro_codigoidioma = 'es' AND P.pro_stock > 0 AND T.tar_codtarif = 9 ORDE' at line 1
SELECT * FROM t_producto P JOIN t_producto_idioma PI ON P.pro_codigo = PI.pro_codref JOIN t_tarifa T ON P.pro_codigo = T.tar_codpro WHERE P.pro_codigo IN (SELECT DISTINCT PP.pro_codigo FROM t_permanente PP WHERE PP.usuario=) AND PI.pro_codigoidioma = 'es' AND P.pro_stock > 0 AND T.tar_codtarif = 9 ORDER BY P.pro_codigo
Filename: models/Producto_model.php
Line Number: 220