Discontinue use of mysql_real_escape_string.
Discontinue use of mysql_real_escape_string.

This function returns empty string in some environments. Better
to use standard CiviCRM $params array as second argument to
CRM_Core_DAO::executeQuery().

Jmanage/com.pogstone.paymentprocessorhelper