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 (16885,34194,44851,18794,5410,45177,45516,44711,44765,18981,8753,10402,44745,13988,44640,17351,44884,44685,17092,18900,30135,45229,44867,44873,44689,17835,44837,32454,17527,44875,17278,44767,44764,44878,45262,44858,45043,16935,44894,44669,45567,44775,24438,17904,18279,45286,17839,13425,9341,14402,18648,43800,44866,44762,28530,18353,17114,17657,18042,44845,6609,44531,17335,45518,18237,14622,45421,45561,5993,6782)
Unknown column 'np.person' in 'where clause'