why do you execute addslashes here ? If you are worried about the values inside of the queryDB... well it applies addslashes to each argument