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 (45229,44640,44745,18996,18279,44854,44845,18301,45518,17904,28313,17492,13922,4686,44868,8753,45346,30963,44894,24441,44861,18042,44671,17839,44865,18446,18719,45561,18652,17601,44870,18237,44851,19078,24438,45567,45042,18981,9341,30135,44768,17237,17351,17756,10402,44711,44875,45177,17527,18894,5388,44884,39676,44866,24412,17092,34194,44858,44837,44856,45516,45286,44855,37057,44873,43800,6875,31354,17755,14402)
Unknown column 'np.person' in 'where clause'