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 (44861,44878,13,45262,19078,17848,44849,44775,17335,16885,44863,44869,45561,18719,18900,18172,18652,18794,17981,18279,18996,13922,44767,9341,45229,44764,19057,45518,45517,17771,45051,5993,45567,45286,44674,45043,3,17527,39676,44689,44866,45346,18430,17278,3883,17703,24438,17839,18301,16935,44875,45177,6609,5259,14622,14402,44685,45421,44762,17237,18237,18688,44873,30135,44855,44836,17092,45516,17009,18981)
Unknown column 'np.person' in 'where clause'