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 (19078,31354,18042,10402,24412,17771,45043,45180,17601,44870,28530,44745,44768,44711,14622,24411,18237,45567,30986,16885,44765,3883,44739,4765,44762,44640,18981,22509,44851,18794,19057,18572,17237,45042,18996,44845,24441,44865,44866,28313,18648,13922,43800,32454,13425,44848,44837,17114,44671,18900,17835,44861,44766,6862,44878,14402,45051,18719,9341,17335,5410,17703,44894,17848,17904,5993,45262,44869,17839,44868)
Unknown column 'np.person' in 'where clause'