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 (45421,17771,18286,4686,44878,17601,8753,37267,45180,28530,45346,45515,44868,18446,17492,44875,44640,28313,44851,44768,4765,6782,36472,44669,44884,18279,45229,44689,6875,18237,14622,17703,30986,17755,18981,17556,45051,14402,18900,18650,45042,45567,18353,18652,44866,13922,10402,37057,17237,45518,32454,44863,34194,13425,44837,17657,44870,18185,19078,24411,43800,44685,18301,17092,44531,31354,44856,45516,44894,45072)
Unknown column 'np.person' in 'where clause'