API now seems to be correctly formatting MySQL query strings dynamically