“Pakistan Trade Hub Live Session — Explore Top Products & Grab Deals Today!”
“Mega Trade Week Starts — Buy Local, Save Big & Support Pakistani Businesses!”
“Exclusive Export Opportunities — Discover Products & Connect with Buyers!”
“Flash Deals on Pakistani Exports — Don’t Miss Limited-Time Offers!”
SELECT SQL_CALC_FOUND_ROWS customers.id, customers.member_type, customers.sub_type, customers.company_logo, customers.company_name
, customers.slug, customers.first_name, customers.last_name, customers.phone, customers.mobile, customers.email
, customers.designation, customers.ntn, customers.website, customers.dob, customers.photo
, customers.city, customers.state, customers.country, customers.status, customers.package_id, customers.package_status
, customers.short_name, customers.falcon_profile_url, customers.profile_photo
, is_completed, profile_access
, (
(customers.company_name = 'Loralai Premium Extra Virgin Olive Oil – 500ml') * 100
+ (customers.company_name LIKE 'Loralai Premium Extra Virgin Olive Oil – 500ml%') * 50
+ (customers.company_name LIKE '%Loralai Premium Extra Virgin Olive Oil – 500ml%') * 20
+ (search.keyword LIKE '%Loralai Premium Extra Virgin Olive Oil – 500ml%') * 5
+ (search.keyword LIKE '%Loralai%') * 2
+ (search.keyword LIKE '%Premium%') * 2
+ (search.keyword LIKE '%Extra%') * 2
+ (search.keyword LIKE '%Virgin%') * 2
+ (search.keyword LIKE '%Olive%') * 2
+ (search.keyword LIKE '%Oil%') * 2
+ (search.keyword LIKE '%–%') * 2
+ (search.keyword LIKE '%500ml%') * 2
) AS relevance
FROM customers
LEFT JOIN customer_own_products ON (customer_own_products.created_by=customers.id)
LEFT JOIN customer_products ON (customers.id = customer_products.customer_id)
LEFT JOIN products ON (products.id = customer_products.product_id)
LEFT JOIN search ON (customers.id = search.member_id)
WHERE 1 AND customers.status='Active'
AND customers.member_type IN('Basic', 'Standard', 'Premium', 'Premium Plus')
AND customers.parent_id = 0
AND ((products.title LIKE '%Loralai%' OR products.keywords LIKE '%Loralai%' OR customer_own_products.title LIKE '%Loralai%' OR customer_own_products.keywords LIKE '%Loralai%') AND (products.title LIKE '%Premium%' OR products.keywords LIKE '%Premium%' OR customer_own_products.title LIKE '%Premium%' OR customer_own_products.keywords LIKE '%Premium%') AND (products.title LIKE '%Extra%' OR products.keywords LIKE '%Extra%' OR customer_own_products.title LIKE '%Extra%' OR customer_own_products.keywords LIKE '%Extra%') AND (products.title LIKE '%Virgin%' OR products.keywords LIKE '%Virgin%' OR customer_own_products.title LIKE '%Virgin%' OR customer_own_products.keywords LIKE '%Virgin%') AND (products.title LIKE '%Olive%' OR products.keywords LIKE '%Olive%' OR customer_own_products.title LIKE '%Olive%' OR customer_own_products.keywords LIKE '%Olive%') AND (products.title LIKE '%Oil%' OR products.keywords LIKE '%Oil%' OR customer_own_products.title LIKE '%Oil%' OR customer_own_products.keywords LIKE '%Oil%') AND (products.title LIKE '%–%' OR products.keywords LIKE '%–%' OR customer_own_products.title LIKE '%–%' OR customer_own_products.keywords LIKE '%–%') AND (products.title LIKE '%500ml%' OR products.keywords LIKE '%500ml%' OR customer_own_products.title LIKE '%500ml%' OR customer_own_products.keywords LIKE '%500ml%'))
GROUP BY customers.id
ORDER BY FIELD(customers.member_type,'Premium Plus','Premium','Standard','Basic'), relevance DESC, customers.ordering ASC
LIMIT 0,20
Fatal error: Uncaught Error: Call to a member function result() on bool in /home/pak87trade58hub/public_html/application/views/themes/falcon/search.php:188
Stack trace:
#0 /home/pak87trade58hub/public_html/system/core/Loader.php(833): include()
#1 /home/pak87trade58hub/public_html/system/core/Loader.php(419): CI_Loader->_ci_load(Array)
#2 /home/pak87trade58hub/public_html/application/models/template.php(190): CI_Loader->view('themes/falcon/s...', Array)
#3 /home/pak87trade58hub/public_html/application/controllers/page.php(128): Template->load('search.php', Array)
#4 /home/pak87trade58hub/public_html/application/controllers/page.php(77): Page->page('search.php')
#5 /home/pak87trade58hub/public_html/system/core/CodeIgniter.php(359): Page->index()
#6 /home/pak87trade58hub/public_html/index.php(208): require_once('/home/pak87trad...')
#7 {main}
thrown in /home/pak87trade58hub/public_html/application/views/themes/falcon/search.php on line 188