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 (17904,18353,5410,6609,44894,13988,17278,44767,17703,44711,18996,44867,45421,17335,44674,18427,17839,44868,44856,44851,44866,13922,45042,17237,37057,45180,44861,17981,43800,9341,13425,45517,18185,39676,19057,24411,18650,6862,18652,44869,14622,17657,17756,44875,17351,44687,44873,44764,17556,4765,45177,16935,37267,45229,24412,18430,45516,44671,18237,45043,8753,28313,17492,44853,18648,44739,44870,18719,45051,45286)
Unknown column 'np.person' in 'where clause'