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 (44875,4686,3883,18042,18185,30963,17848,37267,17601,16935,37057,18650,44894,17839,14402,45515,44685,8753,6862,17527,39676,28313,17755,44836,44868,44858,45518,44671,17703,45561,18301,30135,17835,17114,44837,17278,45421,44775,28530,44870,16885,18652,30986,44867,24412,18353,17904,44766,44669,19057,44767,44711,4765,18430,44745,13,45177,18648,44855,19078,24441,36472,45051,10402,44866,44531,44849,18572,18172,18427)
Unknown column 'np.person' in 'where clause'