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 (18650,17601,45042,5259,34194,17114,44845,18353,6609,17755,18900,13425,44856,14402,18648,13,6875,44762,18981,17657,45262,44836,45516,18430,44884,44853,8753,32454,17278,10402,45277,45561,44640,14622,44835,17009,5410,18185,18301,17237,9341,19057,6782,30963,17351,28313,37057,17981,4686,44849,18688,18794,45515,18427,18279,17492,45180,44775,44669,44867,18719,16935,17771,17556,45229,18042,45286,24412,18652,5388)
Unknown column 'np.person' in 'where clause'