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 (18427,17703,17527,18900,45180,44687,24441,44894,17278,5388,45517,5410,3,44767,44531,44870,17114,36472,6875,45043,44837,45515,18430,18301,18648,18688,44853,18996,43800,45421,18894,18279,44764,18981,8753,37267,44869,39676,44861,14402,44875,24438,45286,4686,44775,44745,17756,6862,45051,3883,44836,34194,17835,44848,18172,44849,18042,45561,37057,17351,4765,44671,9341,17839,44739,44851,17755,44765,44766,45229)
Unknown column 'np.person' in 'where clause'