I am trying to get messages in which the sendID is one of two values. This is an assertion that I have, but it seems to spit out only the messages associated with the first sendID.
(SELECT * FROM messages WHERE sendID = ? AND ? ORDER BY timeStamp ASC', id1, id2)
Can anyone suggest a good method for this?
thanks
Leonardo amigoni
source share