Load Objects from SQL Queries in Joomla CMS