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 (17755,36472,24412,16935,18430,17114,44869,13,44837,18279,44865,17835,45346,18900,4765,24441,17848,4686,45051,19078,18172,44853,44870,44858,18894,19057,18981,5410,44848,17009,44836,18719,44845,13922,10402,18572,17756,8753,18650,17904,45277,39676,44866,17556,45229,44835,31354,45180,44855,14402,44745,16885,45262,24438,18794,45042,17771,45516,5388,44531,28313,18286,37057,44640,34194,6782,32454,44687,17981,28530)
Unknown column 'np.person' in 'where clause'