Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (13922,44671,6875,18996,6609,17009,44711,43800,18172,39676,45177,14622,45515,44674,3883,34194,44861,45262,44894,44858,17351,44848,37267,44851,24411,3,24441,44531,17755,17237,18900,45051,44762,44854,18185,31354,17335,17904,44836,18648,17492,44765,19078,44745,18279,45043,9341,4686,30986,44845,44766,44867,18427,18572,44764,44868,17839,18042,44855,18237,17556,28313,44873,17835,5993,44863,44768,17601,45516,4765)
Unknown column 'np.person' in 'where clause'