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 (18042,18427,6862,44849,17114,30986,18719,44767,13988,16885,13,24441,44671,44775,17278,45051,44685,17335,44863,17092,18172,44869,44640,44762,3,45262,17601,18572,18185,32454,18996,17981,34194,45180,8753,44669,45042,18430,28313,19078,17904,30135,44854,44867,44875,43800,36472,45517,6782,45515,44845,45518,3883,45567,44836,14622,19057,44531,17848,17771,45277,44837,44687,5410,6875,22509,39676,4765,17755,18301)
Unknown column 'np.person' in 'where clause'