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 (39676,28530,18996,6609,45561,44745,34194,17981,17556,31354,44856,44685,9341,17335,45515,4686,4765,45229,43800,44870,30986,44858,17904,45072,6875,17492,24438,24441,44835,18237,6862,44767,17703,44739,44687,18172,37267,17278,18650,44845,44865,18185,17092,45177,45421,44867,17351,18042,44863,44671,44868,17657,45567,18688,3883,17835,18794,44775,13425,44711,17848,18648,17839,44669,17237,18572,18286,45180,17114,44849)
Unknown column 'np.person' in 'where clause'