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 (17114,17527,44867,44865,24411,44768,45177,18185,17335,44764,24438,44775,18301,18353,44855,44854,17351,34194,32454,19078,18427,8753,17904,44835,44640,5388,18650,45180,5410,24441,17839,44848,17092,19057,5259,45516,45518,24412,44837,44884,22509,18279,18996,44873,44851,18648,18042,30986,44836,45515,44765,13,45042,30963,18688,44863,45517,17848,6862,44849,18719,14622,17981,17756,3,44711,17771,18446,14402,44671)
Unknown column 'np.person' in 'where clause'