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 (44671,45042,17237,44875,17756,34194,17335,44868,44866,44845,44861,30135,28313,14622,17556,43800,17755,17981,44689,24412,36472,8753,45421,44767,18286,17278,45286,44865,16935,18719,18648,18301,44711,44669,4765,17848,44764,13988,44856,44836,13922,45043,30986,18894,19057,45567,32454,44853,17114,4686,18427,44640,5993,45262,44884,44685,44855,17492,17703,30963,44878,24441,10402,44867,22509,45072,28530,45229,18172,44531)
Unknown column 'np.person' in 'where clause'