toMySQL -> toSQL - fix Joomla 3 compatibility