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 (45177,18237,44873,13,44768,34194,3,18446,30986,6862,18172,44856,44849,44669,17092,13988,44775,17278,28530,45516,17335,5993,44855,6782,44836,18719,16935,17009,44894,17601,9341,17755,37057,17237,45567,44848,28313,45262,44766,36472,4686,18353,18652,4765,30963,44875,18427,45346,24438,18430,17839,30135,45561,44868,17835,18572,44640,17771,44835,14402,44866,16885,45229,45051,5388,44711,44869,17351,18650,18794)
Unknown column 'np.person' in 'where clause'