我有2个表注册和喜欢。我想要基于顶部的过滤器。如果用户有更多喜欢,那么它应该在顶部。
两张表 1首次注册:
`signup`(`id`, `first_name`, `last_name`, `mobile`, `password`,
`confirm_password`, `email`, `username`, `country_id`, `state_id`,
`city_id`, `gender`, `occupation_id`, `personal_address`,
`personal_description`, `personal_status`, `business_name`,
`business_categories_id`, `business_phone`, `business_email`,
`business_address`, `business_website`, `services`, `business_status`,
`personal_profile_photo`, `business_profile_photo`, `created_on`, `otp`,
`status`)
2喜欢表:b_like
(id
,userid
,profile_id
,type
,timestamp
)
我想要基于顶级喜欢的过滤器