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 (44867,6782,44762,45567,45286,17904,30963,44739,6609,13988,3,17601,18572,45516,18430,28313,13425,45515,44865,44875,44765,45051,45517,17981,18981,45177,44669,17492,17114,17755,44870,44894,13,44849,18279,37267,45072,5259,39676,44766,17527,18719,18900,5410,44768,44856,18237,44869,17657,24438,18427,17278,44745,24411,44640,17351,18446,44866,45421,18286,18301,22509,44873,17848,18996,44775,18650,45180,18894,17771)
Unknown column 'np.person' in 'where clause'