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 (34194,44849,18237,3883,45042,18279,4686,44762,18900,37267,17703,44856,18648,36472,17839,45346,18572,13988,44884,37057,44836,18172,45262,17492,45286,18286,18996,9341,44851,17756,30135,45043,45518,8753,13,18652,30986,19078,19057,18446,45072,14402,44768,17527,44689,45516,45229,18430,44711,17981,44739,45515,44866,44765,45277,24411,44894,18301,5259,17556,17351,17657,44674,32454,6875,17335,18042,44878,18353,18185)
Unknown column 'np.person' in 'where clause'