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 (6609,39676,18894,31354,45043,44531,45517,17556,18719,13,44765,18996,45286,5993,44849,17237,9341,37057,45567,8753,18650,17335,6875,17771,5410,24412,18572,17278,18648,17756,13922,44851,17703,44767,24411,37267,18042,44674,45346,44711,14622,45072,18688,18353,3883,45277,18794,45180,44669,44866,44836,44894,44878,18981,44687,18237,18446,18279,17601,44867,18172,44854,45262,18900,34194,45042,45229,45051,44865,24441)
Unknown column 'np.person' in 'where clause'