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 (17601,44745,43800,17114,18301,17527,18042,45262,14622,30986,44836,5259,18185,5993,18648,44685,44854,44856,31354,44858,17904,44739,5388,44894,45286,44767,13988,44865,44866,18279,17278,24438,28313,14402,45421,32454,44870,45042,5410,44669,18719,45517,44867,44884,39676,18688,44875,34194,44711,18572,6609,44762,13425,17657,44837,10402,18900,19078,45177,17009,17755,45518,44845,18652,44863,45051,18286,45180,45561,17848)
Unknown column 'np.person' in 'where clause'