Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (44854,17756,18981,17092,44863,45229,44775,13988,17351,4765,37267,16935,3883,44711,17703,18652,44875,28530,5993,44745,30963,44853,45042,45517,44669,44865,45072,24441,16885,10402,44685,19078,39676,17839,44764,44868,45567,45561,44687,45277,24411,18286,18185,37057,30135,28313,45180,17755,18427,32454,45518,18279,17335,18042,44767,45421,44531,17657,45051,17904,17601,44739,5259,36472,44867,18794,24438,44765,17114,18894)
Unknown column 'np.person' in 'where clause'