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 (14622,44858,18996,13,30986,18427,36472,28530,22509,45177,45262,10402,44837,45180,3,44854,44689,6609,18648,44640,44875,5388,45229,17755,44851,31354,44849,44836,6782,44739,45567,44869,45043,18719,16935,17335,16885,6875,44669,17839,17527,44685,45346,17657,44687,39676,44855,28313,17092,44856,44711,18430,44878,19057,30963,18237,17114,30135,45515,45051,17703,45421,44865,17756,44745,18894,37057,45517,6862,17351)
Unknown column 'np.person' in 'where clause'