A Database Error Occurred

Error Number: 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 ') LIMIT 20' at line 4

SELECT `p`.`id`, `precio`, `p`.`subrubroid`, IF(p.stock > 0, "1", "0") as `tiene_stock` FROM `productos` `p` WHERE `p`.`estado` = 1 ORDER BY `tiene_stock` desc, `p`.`orden` asc, `p`.`id`, FIELD (p.id, ) LIMIT 20

Filename: models/Productos_m.php

Line Number: 104