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 (44768,45421,17527,3883,14622,37267,44884,44861,22509,30986,18042,45516,6782,44875,17351,17839,45517,17114,44845,17703,44674,17981,45177,45286,18794,45180,44870,18301,6875,18894,18286,18427,34194,28530,13,18237,13425,44640,44669,10402,44865,45277,9341,44711,44894,44835,17755,16885,44689,3,44851,17237,17771,44767,43800,45561,17756,44856,18185,8753,17657,45515,19078,44854,44866,37057,18279,44531,45262,44869)
Unknown column 'np.person' in 'where clause'