“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 = 'Honey Eye Drops') * 100
+ (customers.company_name LIKE 'Honey Eye Drops%') * 50
+ (customers.company_name LIKE '%Honey Eye Drops%') * 20
+ (search.keyword LIKE '%Honey Eye Drops%') * 5
+ (search.keyword LIKE '%Honey%') * 2
+ (search.keyword LIKE '%Eye%') * 2
+ (search.keyword LIKE '%Drops%') * 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 '%Honey%' OR products.keywords LIKE '%Honey%' OR customer_own_products.title LIKE '%Honey%' OR customer_own_products.keywords LIKE '%Honey%') AND (products.title LIKE '%Eye%' OR products.keywords LIKE '%Eye%' OR customer_own_products.title LIKE '%Eye%' OR customer_own_products.keywords LIKE '%Eye%') AND (products.title LIKE '%Drops%' OR products.keywords LIKE '%Drops%' OR customer_own_products.title LIKE '%Drops%' OR customer_own_products.keywords LIKE '%Drops%'))
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