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 (18572,17848,30963,44884,17703,45516,45177,45515,18279,18446,17009,44685,13988,45042,44866,5410,5388,14402,13,44669,39676,13922,44762,17527,30135,16885,44689,17237,18650,44863,24412,13425,18981,8753,44853,19078,44765,44766,4686,45072,44858,45346,9341,44851,24438,6875,44767,44837,44854,44739,17492,18900,17755,37267,32454,45517,44869,44848,30986,18301,44531,44745,18996,18185,6609,18652,44671,44849,17839,45262)
Unknown column 'np.person' in 'where clause'