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 (18900,44766,28313,18650,14402,17237,17601,18572,9341,5993,45517,45043,13988,4686,44762,18794,28530,45072,8753,45561,22509,44865,37057,44768,44866,3883,36472,44856,45229,14622,44836,18719,45262,45042,10402,24412,34194,44687,17904,44868,45516,17771,5388,37267,17092,18652,39676,6609,13425,18185,17527,18042,18279,44869,17839,45277,45567,44671,44855,45346,18688,32454,44640,45051,18648,44775,17556,44669,44767,44853)
Unknown column 'np.person' in 'where clause'