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 (17835,17492,5388,17351,19057,44762,44870,24411,17237,18427,6609,44671,17278,17009,6862,45561,37267,45517,18042,45518,24438,44858,44866,45180,44836,8753,18996,5993,17771,16935,24441,45177,44674,17756,10402,18650,28313,45516,44767,45286,44739,16885,44766,44685,18185,44687,44868,30963,17114,44894,17527,44849,17981,24412,18430,45346,44861,45421,44764,17755,44865,36472,4765,18652,18237,18172,18446,17848,3883,44531)
Unknown column 'np.person' in 'where clause'