I have this query that works perfectly in MySQL:
select maestro from destajosetapas WHERE idetapa = '18' AND iddestajo='15241'
By collecting the results PHP gives me NULL
, but if I put:
select maestro from destajosetapas WHERE idetapa = '18'
PHP returns results without problem. It should be noted that my query is within a foreach
which already changed for all available cycles and the problem continues, this query igualita I do it in other files and php allows me to collect results, I do not understand because using the AND does not work!