select a.*,
(select user_email from users where user_id=a.user_id) as user_email
from users_details a
where a.user_id=
select * from companies where company_id=
SELECT count(id) FROM user_products WHERE user_id= AND id<>20 AND active='1'
select a.*,
b.category_name
from user_products a,
company_categories b
where a.category_id=b.category_id
and a.user_id=
and a.id<>20
and a.active="1"
ORDER BY a.id LIMIT 0,10