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 (18353,24441,32454,17981,44687,44764,30963,4765,18900,17848,17351,17904,17771,45421,44866,44870,18652,44768,44854,37267,44849,44875,30135,43800,44836,44848,45567,17527,3,45229,39676,19078,18572,45262,13988,18427,13,6609,37057,44878,44837,45072,18688,44671,16885,6862,44856,44669,18981,30986,44745,18430,10402,18042,18996,36472,44894,44711,45277,17755,31354,16935,17601,44762,17009,18279,44674,34194,45180,18794)
Unknown column 'np.person' in 'where clause'