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 (37057,44766,44854,18172,17492,39676,6862,31354,14402,17351,18981,17904,45517,44868,18900,44884,18794,18353,17092,44711,17703,44669,16935,5388,44870,17756,17556,17237,18652,17657,32454,44875,45177,44837,5410,18572,45421,4765,13,6782,24441,45516,18430,6609,17771,17009,44849,44867,44739,45346,45518,44858,45286,44851,44531,18301,17601,17848,44685,5993,18446,44775,8753,18719,34194,24412,17527,30963,28530,37267)
Unknown column 'np.person' in 'where clause'