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 (28530,5388,17755,18981,37057,44671,17703,30135,44884,3,9341,17351,13425,44674,18185,16885,5410,45277,14402,18894,18719,44837,13,44836,8753,28313,18042,44640,45177,44835,19057,44867,45421,45262,44873,17657,17556,45229,4765,32454,44767,45561,44711,30986,45180,17237,18427,18688,44868,14622,43800,24412,18279,44531,18996,44845,45072,24438,34194,13988,17904,18650,44766,30963,17771,18794,45516,6875,45286,17839)
Unknown column 'np.person' in 'where clause'