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 (32454,45567,28313,18981,17601,5259,16885,30963,44848,45516,18301,45042,44745,17756,18353,24441,4686,44711,10402,18427,44858,17114,14622,37057,18794,45517,19078,34194,13988,45262,5388,44685,18652,45229,44739,45277,8753,18894,17527,44867,24412,17771,18900,44689,44856,30986,18185,4765,44837,44640,45421,5410,19057,44764,36472,44687,45072,44875,44894,37267,44849,43800,44762,45346,3883,28530,44873,44884,44870,45177)
Unknown column 'np.person' in 'where clause'