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 (17237,17114,18172,44878,18430,17527,6862,44884,30135,45229,44745,37267,5993,3883,44867,44854,18301,39676,44768,19057,6609,44869,17771,18572,28313,4686,10402,44866,44764,45072,5410,44836,28530,44640,9341,36472,44739,44856,44861,30986,18042,45262,17335,24411,18446,18237,45567,44853,45517,44766,44711,44669,16935,17492,45421,18286,17092,44894,18650,43800,17601,44765,17278,17755,13922,18688,18648,17981,44775,45346)
Unknown column 'np.person' in 'where clause'