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 (44685,6782,44762,18185,45567,19078,44894,45042,18894,22509,14622,44867,17703,17527,45072,3,45346,45421,14402,44687,24412,18900,17657,18794,8753,36472,44873,44669,44858,37057,45516,44866,45515,45229,44875,44849,44739,18430,44848,44767,13988,44768,17839,18446,44884,44845,45177,17755,17835,45277,34194,16935,13922,28530,17278,17092,17114,45043,17848,24438,44837,30135,44855,17556,45262,18981,6862,24441,16885,17335)
Unknown column 'np.person' in 'where clause'