[BUGFIX] Removed mysql_escape_string since it caused trouble

And added the use of the prepareAdditionalWhere in the getConf method