I wanna check whether a foreign key value exists in another table. What I\'m trying to do is: I have a table named Gallery and another one named Posts. Pos