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 (17703,30986,44854,13425,45567,44765,44865,44836,5993,44849,10402,18688,18794,17835,44764,17755,44875,17601,13,44767,6782,24411,18648,17981,44762,44878,16935,45051,18237,14622,18042,18430,45042,45043,44863,44858,44855,18301,5259,24441,18719,3,18572,45516,18996,18652,6609,17839,44867,44866,45277,18446,45177,17527,45346,9341,13988,17756,16885,17492,44739,14402,5388,19078,45515,45421,18981,17237,45517,4765)
Unknown column 'np.person' in 'where clause'