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 (45561,17756,5388,17657,44671,18572,44711,6609,44674,18301,45346,45516,45051,44868,14402,10402,16935,44764,45286,24438,13,17335,45072,22509,44765,28313,44867,44685,34194,17839,18446,24412,4765,13425,18172,17835,44669,45262,44894,17703,18286,18794,44837,24411,17009,44861,44863,44851,18688,30963,44884,44775,45567,18427,18900,18650,3,17755,17527,44848,45043,18996,44640,44849,17237,45518,44766,44858,45517,14622)
Unknown column 'np.person' in 'where clause'