Código PHP:
Ver original$sentencia = " SELECT if(articulos.stock>0,'si','no') AS existeStock FROM articulos;";
$this->resultados = $this->rawQuery($sentencia, $bindParametros);
Cita: Ocurrio un error preparando la sentencia ( SELECT if(articulos.stock>0,'si','no') AS existeStock FROM articulos;) 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 ''si','no') AS existeStock FROM articulos' at line 1