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 (24441,44836,18427,17756,18286,17703,18353,16885,28313,45043,22509,13922,17237,44868,17981,44858,13425,44835,45567,17114,39676,44894,30986,44853,45229,44870,44768,18996,18042,17351,17335,31354,19057,43800,18652,14622,24438,44855,44884,44766,45177,18185,44873,44875,17278,44869,44671,45051,18572,45072,17092,44739,18794,5388,18279,17835,44878,10402,18301,17492,4765,17527,45286,17771,44765,18172,45421,44851,44767,18688)
Unknown column 'np.person' in 'where clause'