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 (44845,44878,17492,44762,36472,45567,4765,5410,17351,44531,44866,45180,45262,19057,6862,44689,44745,18794,18981,44861,44863,18719,17981,9341,18042,18185,45346,18430,18237,44851,18996,18353,18279,18286,3883,5993,45042,17657,17335,44835,18572,44837,13425,45518,37057,44873,44865,17904,10402,14622,44855,44875,18652,17092,17527,44868,17755,44775,18427,45177,18446,34194,17114,30963,44768,44766,44894,44853,5259,45229)
Unknown column 'np.person' in 'where clause'