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 (18688,17755,44875,6862,16935,44640,44711,18894,17703,37267,34194,5993,45277,18301,18279,44765,13425,19078,44870,17771,45072,45567,17092,44762,44884,18650,17492,13922,24441,45043,13,45051,5259,24438,17114,17981,6609,17835,18172,9341,18042,14622,36472,44674,31354,18996,28313,13988,5410,18427,44739,17527,18286,18446,18900,17756,5388,24411,44866,30986,44853,18353,44858,18237,44767,44854,45518,44867,24412,44869)
Unknown column 'np.person' in 'where clause'