$grabContribs = "SELECT answers.user, answers.answer, answers.qID, user_question.question, answers.date, user_question.id uID, user_question.make, user_question.model, 'A' 'type'
FROM answers
LEFT JOIN user_question ON answers.qID = user_question.id
WHERE answers.user = '$user'
user_question.make, user_question.model
UNION
SELECT how_to.user, how_to.howto, how_to.id hID, how_to.question, how_to.date, NULL, how_to.make, how_to.model, 'H' 'type'
FROM how_to
WHERE how_to.user = '$user'
ORDER BY date DESC";
|