I have these two tables:
tAccounts
id, name, server_id
tFriends
id_lo, id_hi
Now, I'm trying this query:
SELECT FR.id_lo AS id_friend
FROM tFriends FR, tAccounts AC
WHERE (FR.id_hi = 4 && AC.server_id != -1)
........ In order get the friends of a certain user, while making sure his friend's server_id is different than '-1' !
Any idea? It seems like the 'AC.server_id != -1' constraint in the WHERE clause doesn't give me the expected results.