Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'view group by c.`program_id` ORDER BY b.`inst_name` ASC limit 0,12' at line 10' in /var/www/html/www_public/pj/application/models/TrgUsermaster.php:35 Stack trace: #0 /var/www/html/www_public/pj/application/models/TrgUsermaster.php(35): PDOStatement->execute() #1 /var/www/html/www_public/pj/application/models/OpxProgramDates.php(121): TrgUsermaster::callpdo('SELECT a.`progr...') #2 /var/www/html/www_public/pj/application/controllers/index.php(104): OpxProgramDates::program_search('ins', '.grid view', '', '', '') #3 [internal function]: Index->programs('ins', '.grid-view') #4 /var/www/html/www_public/pj/system/core/CodeIgniter.php(360): call_user_func_array(Array, Array) #5 /var/www/html/www_public/pj/index.php(302): require_once('/var/www/html/w...') #6 {main} thrown in /var/www/html/www_public/pj/application/models/TrgUsermaster.php on line 35