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 (17009,17904,45043,44765,30135,43800,44861,17756,44878,24441,18894,44856,30986,45421,45516,24412,19057,44849,18688,44775,17092,22509,44768,4686,45042,17848,44858,45277,44855,18794,44851,18648,44762,44867,45518,17981,14402,14622,16885,17351,44640,45567,17278,44531,17492,44884,44868,44865,17527,45229,44739,18900,18237,44711,44873,44875,44870,17335,18996,44894,4765,6862,32454,17237,18286,44669,13922,18572,8753,44837)
Unknown column 'np.person' in 'where clause'