Adding extra logic to avoid php error logs for sql queries which do not ...

...suppose to return any data- like INSERT, DELETE, UPDATE