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 (18572,13922,28313,17092,44762,44765,18981,44711,18279,34194,18650,44858,18301,17839,44875,44845,17278,44868,18900,44869,22509,45286,18446,17237,44745,13425,37057,5259,17755,17114,3,6609,5410,39676,18353,18996,44669,44835,19078,16885,44866,45042,18652,45177,13,44766,44848,14402,18237,44894,17835,45421,18430,18794,44837,44853,24411,8753,30135,44689,30963,44531,45262,44861,17771,45229,45043,24438,44640,18688)
Unknown column 'np.person' in 'where clause'