Following is my query
select c.*,u.fullname,u.userphoto from chat_messages
c left join us_signup u on u.id=c.fromid
where c.fromid in(?,?) and c.toid in(?,?) and c.jobid=?
order by c.received_date asc
there is a column in the chat_messages table called "readi" which I want to update
I have already refered :
How to UPDATE and SELECT at the same time in MySQL
Is there a way to SELECT and UPDATE rows at the same time?
etc.. but could not modify my query..