Guest User

Untitled

a guest
Dec 14th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. select * from `messages` where ((`to` = ? and `from` = ? and `recipient_type` = ? and `timer` is null)) or ((`to` = ? and `from` = ? and `recipient_type` = ? and `timer` is null)) and not exists (select * from `message_deletes` where `messages`.`mid` = `message_deletes`.`message_id` and `user_id` = ?) order by `id` desc limit 100
Add Comment
Please, Sign In to add comment