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 (17335,18572,45567,18427,17556,18650,44894,17839,17237,19078,17351,22509,14622,45042,16935,18446,44878,44884,24441,45346,44866,45421,18981,16885,44870,6609,44745,45277,37267,17657,44767,32454,4686,45517,6782,44845,13988,24412,6875,18353,44848,45072,18900,45229,44868,3883,44861,9341,18719,17601,6862,45043,45177,18996,17771,44711,19057,44764,44765,44856,17904,17527,17092,37057,30986,18237,44674,18430,5993,5410)
Unknown column 'np.person' in 'where clause'