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 (18572,45421,45042,44894,18648,8753,18981,17839,17335,30963,17237,18794,4686,17527,3883,44848,44689,17351,45262,17756,5993,32454,45567,44669,44858,28313,18301,44855,45286,24441,44687,18185,44870,45346,34194,45277,44745,24412,44671,44766,17492,18688,18427,17848,18042,44854,45518,43800,18996,6875,28530,19057,44775,18286,31354,39676,44873,44884,18172,14402,13922,3,5259,44767,4765,44868,13425,18900,18652,18237)
Unknown column 'np.person' in 'where clause'