Queries corrected using addslashes