Exception in PHP Script
/contract-mobile-phone-deals.php/Sony_Ericsson_W715_Silver
PHP Version: 5.2.9;  Zend Engine Version: 2.2.0;  Qcubed Version: 1.0.0 RC2 (QCubed 1.0 RC2)
Application: Apache;  Server Name: www.newmobilephonedeals.org.uk
HTTP User Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
MySqli Error: 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 'group by search.deal_category_id    
   order by deal_category.priorit' at line 6

Exception Type:   QMySqliDatabaseException

Rendered Page:   Click here to view contents able to be rendered

Source File:   /home/cashpayd/public_html/newmobilephonedeals.org.uk/contract-mobile-phone-deals.php     Line:   361

Line 356:    						   search.mobile_id = $this->intMobileId	
Line 357:    						   group by search.deal_category_id					   
Line 358:    						   order by deal_category.priority asc,deal_category.name asc";
Line 359:    				 
Line 360:    				$objDatabase  = QApplication::$Database[1];
Line 361:    				$objDbResult = $objDatabase->Query($strSql);	
Line 362:    				while ($mixRow = $objDbResult->FetchArray()) {	
Line 363:    					
Line 364:    					if($mixRow["deal_category_id"] != $this->intDealCategoryId) //dont need to add deal category which he is on already
Line 365:    						$this->lstDealCategoryMain->AddItem($mixRow["deal_category_name"],$mixRow["deal_category_id"]);				
Line 366:    				}

Database Error Number:  1064

Query:   Show/Hide


Call Stack:

#0 /home/cashpayd/public_html/newmobilephonedeals.org.uk/contract-mobile-phone-deals.php(361): QMySqlDatabase->Query('Select deal_cat...')
#1 /home/cashpayd/public_html/newmobilephonedeals.org.uk/contract-mobile-phone-deals.php(67): ContractDeals->lstDealCategoryMain_Create()
#2 /home/cashpayd/public_html/qcodo/includes/qcodo/_core/qform/QFormBase.class.php(276): ContractDeals->Form_Create()
#3 /home/cashpayd/public_html/newmobilephonedeals.org.uk/contract-mobile-phone-deals.php(452): QFormBase::Run('ContractDeals')
#4 {main}

Variable Dump:   Show/Hide



Exception Report Generated:  Friday, July 30 2010, 11:29:03 AM