Php Query Not Executed As Expected Stack Overflow

Php Query Not Executed As Expected Stack Overflow