- Towel Manufacturers Association of Pakistan -
- ٹاول مینوفیکچررز ایسوسی ایشن آف پاکستان -
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 = 'Van Dillen Asiatex GmbH') * 100
+ (customers.company_name LIKE 'Van Dillen Asiatex GmbH%') * 50
+ (customers.company_name LIKE '%Van Dillen Asiatex GmbH%') * 20
+ (search.keyword LIKE '%Van Dillen Asiatex GmbH%') * 5
+ (search.keyword LIKE '%Van%') * 2
+ (search.keyword LIKE '%Dillen%') * 2
+ (search.keyword LIKE '%Asiatex%') * 2
+ (search.keyword LIKE '%GmbH%') * 2
) AS relevance
FROM customers
LEFT JOIN search ON (search.member_id = customers.id)
WHERE 1 AND customers.status='Active'
AND customers.member_type IN('Basic', 'Standard', 'Premium', 'Premium Plus')
AND customers.parent_id = 0
AND ((search.keyword LIKE '%Van%' OR customers.company_name LIKE '%Van%' OR customers.short_name LIKE '%Van%') AND (search.keyword LIKE '%Dillen%' OR customers.company_name LIKE '%Dillen%' OR customers.short_name LIKE '%Dillen%') AND (search.keyword LIKE '%Asiatex%' OR customers.company_name LIKE '%Asiatex%' OR customers.short_name LIKE '%Asiatex%') AND (search.keyword LIKE '%GmbH%' OR customers.company_name LIKE '%GmbH%' OR customers.short_name LIKE '%GmbH%'))
GROUP BY customers.id
ORDER BY FIELD(customers.member_type,'Premium Plus','Premium','Standard','Basic'), relevance DESC, customers.ordering ASC
LIMIT 0,20
Companies matching “Van Dillen Asiatex GmbH”