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 (45051,44894,45286,45262,39676,6862,18794,44884,10402,44867,17351,28530,44711,37267,36472,44848,17092,4686,44669,18301,44875,17601,45180,44671,6875,4765,44775,17657,45346,44689,14402,32454,18446,17492,44853,3,45229,16885,19078,18719,44849,17703,8753,18286,18650,18648,17114,5410,44837,45072,44766,44856,22509,18894,3883,44685,17839,13988,44640,5259,18652,30986,17237,45567,18688,44854,30963,44865,45042,45561)
Unknown column 'np.person' in 'where clause'