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 (18286,17492,18572,18279,18652,31354,44689,6609,44836,3883,28313,44865,4765,45229,18237,17114,10402,18719,32454,17556,5993,45561,43800,18042,44835,44884,13,18981,44869,44767,17335,17092,45277,30963,37057,18430,24411,44674,18353,44531,45177,44866,44671,44851,45180,18648,44873,14402,30135,17839,44849,39676,17755,19078,45042,34194,44878,45515,18688,44861,16935,44711,17601,44766,44669,5388,28530,16885,4686,17756)
Unknown column 'np.person' in 'where clause'