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 (16885,44853,45072,5259,18427,44848,44669,44766,45051,31354,44854,32454,4765,18719,44875,44531,24438,18446,24441,17756,18279,45177,28313,18996,17527,44884,45567,18794,43800,30986,17556,44689,45042,44855,17492,44671,44863,45561,45515,6782,16935,13988,13,39676,17237,44858,45518,19078,17335,44640,18650,44764,18172,45262,44835,44836,8753,18688,44873,44878,17981,44775,17755,44845,36472,44711,6875,17703,18981,44870)
Unknown column 'np.person' in 'where clause'