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,17904,30963,44640,44739,44858,18042,44870,13922,24412,44851,18652,18894,17556,44687,45518,44845,39676,44766,14622,17237,45043,17755,44853,17009,44689,6609,44764,19057,17278,31354,44865,18353,17756,5259,14402,30135,43800,17092,45277,44711,36472,6782,44768,17839,44669,18301,44775,45516,44863,18172,8753,44837,10402,45177,13,44894,17335,45561,32454,44884,22509,18981,17981,45515,19078,18279,44762,45072,44875)
Unknown column 'np.person' in 'where clause'