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 (5993,6862,18042,44873,45518,44894,17835,44837,17009,37057,45561,44861,13425,44848,19078,17351,44849,16935,44856,44868,18237,44685,17904,5388,45180,18719,44762,45042,4686,44745,3,18894,44711,45277,44764,30135,18688,24438,32454,18172,18279,44878,44867,44775,17981,17756,37267,44768,45072,24411,44836,44739,45043,44884,18900,44767,44669,44766,18648,24441,17601,18981,17527,3883,17114,45421,45229,44866,17092,44870)
Unknown column 'np.person' in 'where clause'