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 (18719,5388,44775,44766,32454,44863,17981,44873,13425,44764,16885,18172,17703,44856,8753,45516,44674,18286,14622,44837,17657,6609,18446,24411,19078,18996,17278,45229,3,17092,44669,24441,18794,4686,44866,44849,44762,44884,44875,17756,18652,22509,14402,18353,44851,44767,45567,16935,45262,31354,45346,44868,5993,44870,18237,45515,45517,45286,28313,44848,18185,17335,37057,18900,17771,44865,44745,13,10402,44855)
Unknown column 'np.person' in 'where clause'