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 (39676,4686,44848,3883,18353,44767,18185,14402,17556,44863,45180,31354,44669,19078,13,18042,17492,18981,44851,17904,16885,18719,44640,17755,45516,45561,18688,44775,13922,18286,44845,18650,45262,17848,44866,6875,5410,44711,5388,30135,44873,6862,18652,3,17278,19057,44689,45517,44764,22509,17351,44531,45051,43800,18237,44858,18894,17756,45043,17601,17009,44854,17114,28313,44878,18572,17981,44739,45177,18172)
Unknown column 'np.person' in 'where clause'