Database_Exception [ 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 '))) and (isnever=0 or (starttime<1711620784 and endtime>1711620784)) order by di' at line 2 [ select type,amount from sline_coupon WHERE kindid=1 and isopen=1 and isdel=0 and (typeid=0 or (find_in_set(5,modules) and typeid=1) or (typeid=9999 and id in (select cid from sline_coupon_pro WHERE typeid=5 and proid=))) and (isnever=0 or (starttime<1711620784 and endtime>1711620784)) order by displayorder ]

MODPATH/database/classes/kohana/database/mysql.php [ 194 ]

189 			{
190 				// This benchmark is worthless
191 				Profiler::delete($benchmark);
192 			}
193 
194 			throw new Database_Exception(':error [ :query ]',
195 				array(':error' => mysql_error($this->_connection), ':query' => $sql),
196 				mysql_errno($this->_connection));
197 		}
198 
199 		if (isset($benchmark))
  1. MODPATH/database/classes/kohana/database/query.php [ 275 ] » Kohana_Database_MySQL->query(arguments)

  2. DOCROOT/plugins/coupon/classes/model/coupon.php [ 579 ] » Kohana_Database_Query->execute()

  3. DOCROOT/data/cache/v5/tplcache/default/spot/show.php [ 101 ] » Model_Coupon::get_mobile_coupon_info(arguments)

  4. APPPATH/classes/stourweb/view.php [ 65 ] » include(arguments)

  5. DOCROOT/tools/classes/class/view.php [ 420 ] » Stourweb_View->capture(arguments)

  6. APPPATH/classes/stourweb/controller.php [ 114 ] » Class_View->render()

  7. DOCROOT/plugins/spot/classes/controller/pc/spot.php [ 547 ] » Stourweb_Controller->display(arguments)

  8. {PHP internal call} » Controller_Pc_Spot->action_show()

  9. SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)

  10. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  11. SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client->execute(arguments)

  12. DOCROOT/index.php [ 136 ] » Kohana_Request->execute()

Environment