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 (10402,13922,44849,44766,18719,44848,44745,9341,28530,17351,6862,13,4765,18572,45518,44866,17335,5388,17756,44768,44845,17009,14622,44711,17278,18900,37057,17527,18794,44870,45277,45072,44739,18172,45177,37267,17703,45516,17556,44873,30986,45229,44775,44854,18301,45561,44884,17237,44674,45043,18652,17114,44869,18996,44836,45346,44671,18981,18353,44531,44685,17839,18279,34194,5259,31354,44669,8753,18650,24438)
Unknown column 'np.person' in 'where clause'