Search


( ! ) Fatal error: Wrong SQL: SELECT 'Include Resellers' as category,'reseller' as fieldname,reseller as `element`, SUM(deal_count) as phone_count from options WHERE reseller<>'' AND tariff_name = 'SIM Free' GROUP BY reseller UNION ALL SELECT 'Type' as category,'type' as fieldname,type as `element`, SUM(deal_count) as phone_count from options WHERE 1 AND tariff_name = 'SIM Free' GROUP BY type UNION ALL SELECT 'Model Make' as category,'model_make' as fieldname, model_make as `element`, SUM(deal_count) as phone_count from options WHERE model_make != '3' AND model_make != 'Mobile Broadband' AND model_make != 'SIM Only' AND model_make != 'Vodafone' AND model_make != 'Orange' AND model_make != 'T-Mobile' AND tariff_name = 'SIM Free' group by model_make UNION ALL SELECT 'Phone Cost' as category,'offer_phonecost' as fieldname, offer_phonecost_range as `element`, SUM(deal_count) as phone_count from options WHERE 1 AND tariff_name = 'SIM Free' group by offer_phonecost_range UNION ALL in C:\wamp\www\php\Database\datarequestfunction.php on line 30
Call Stack
#TimeMemoryFunctionLocation
10.0007248584{main}( )..\search.php:0
20.0049422352include( 'C:\wamp\www\php\SearchPage\searchoptions.php' )..\search.php:127
30.0052432912requestData( )..\searchoptions.php:219
40.0084444728trigger_error ( )..\datarequestfunction.php:30