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 (5259,17601,18042,17703,44858,19078,17848,17278,45072,8753,6609,44854,44848,44669,44765,44868,45229,44851,45277,44775,24411,30986,45042,17351,17904,18572,17755,18172,45180,44640,5410,5388,44894,44687,44711,45518,44671,45517,44531,45051,44861,44835,17771,18652,45043,45421,18650,18237,44766,37267,44855,13,3883,43800,45516,17657,28313,18648,44875,18688,30963,6782,17839,16885,18719,37057,18794,18301,44870,45262)
Unknown column 'np.person' in 'where clause'