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 (17237,44711,17835,44762,45051,6609,19057,18719,18652,16885,17114,13,13425,44766,44884,44863,45517,17527,18981,44671,17904,5259,17351,44767,44868,44867,17278,24412,44531,18794,24438,44865,44869,5993,44835,6875,45072,30963,45421,28313,44873,44858,18430,17556,44875,18688,36472,18301,17492,45515,17009,44768,18900,44894,45516,44851,18185,34194,17756,18572,18648,30986,18427,44687,4686,17755,17601,17848,44870,17839)
Unknown column 'np.person' in 'where clause'