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 '35,,17,0) AS precio_publico' at line 1
SELECT precio_variante_distribuidor(,35,,17,0) AS precio_publico

Fatal error: Call to a member function close() on a non-object in /home/ogrckhvw/public_html/includes/include.mysql.php on line 44