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 (18427,45229,18286,45515,16885,17771,44884,45262,44711,31354,44858,13,45561,18650,18794,45567,45042,18900,44764,44894,44865,18185,44739,14622,8753,17237,17601,30986,17755,17657,17114,13922,24412,44766,44837,45177,18446,17335,44767,44853,19078,45051,17009,5993,18648,32454,44674,45286,18572,44867,17278,44531,44835,5388,16935,37267,44671,17848,17981,45277,22509,45180,39676,18172,9341,44873,45072,45421,44745,44869)
Unknown column 'np.person' in 'where clause'