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 (17848,18650,18185,32454,5388,44674,45042,17839,45051,45277,17657,18446,5410,17835,13988,18652,44894,17237,45516,44767,44766,24411,44745,17527,44858,45043,45177,13922,44836,44884,37057,44863,18572,24438,44870,18286,5993,18719,19078,44855,44866,3883,44848,44768,17009,17351,3,36472,44845,28530,17981,39676,45346,18794,44669,17755,17703,44853,9341,45421,44865,44873,10402,18353,18172,18427,22509,44837,44640,4686)
Unknown column 'np.person' in 'where clause'