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 (44875,44775,18427,31354,44674,45421,44531,24412,43800,36472,44640,16885,44866,45177,44765,18652,45277,44836,45517,44870,18185,17492,37267,6782,28313,44739,44867,44878,30963,17237,19057,44861,45515,44669,45180,6609,14622,44856,13988,18688,44863,44848,32454,5259,18301,17527,5993,8753,44671,13,44853,18279,44711,45346,17351,44687,19078,3,6875,17904,18286,6862,44855,17848,45262,45567,45043,14402,18794,45561)
Unknown column 'np.person' in 'where clause'