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 (44687,5388,17278,16935,37267,44869,44745,17351,44848,24411,44837,45042,24441,17335,30135,5410,36472,44863,18279,43800,17601,17755,45229,18648,44689,17904,45517,18719,30986,45561,44836,44878,37057,18652,6782,18650,17657,44766,13922,44861,18353,18900,14402,13988,44868,17237,18794,44875,3,44765,19057,44669,45072,45346,18572,18981,39676,44870,45180,31354,44866,44845,44851,45051,44767,44835,45515,17556,44884,45286)
Unknown column 'np.person' in 'where clause'