No pude leer la tabla de productos para min-max
SELECT max(`ID`) AS MaxID, min(`ID`) AS MinID FROM `ProductPages` WHERE `Publish` = 'Sí' AND `ProdCatsID` = AND `ProdSCatsID` =
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 `ProdSCatsID` =' at line 4