SELECT t.*,u.`name`
FROM template t
INNER JOIN `user` u
ON u.id = t.user_id
WHERE t.is_delete = 1
AND ( t.title LIKE "%abc%" or u.`name` LIKE "%abc%" )
above are the sql statements I want to implement, and the model model relationships are all correct
.what if it is paged on this basis