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 (24441,44868,13922,45421,45567,17114,18430,44873,18981,44855,17981,18427,17755,18719,44875,44767,22509,18286,44671,44856,44849,45286,44853,44531,45051,45561,5410,44870,44745,32454,18446,17835,30963,19057,17771,45515,28313,16885,17839,44854,18688,39676,13425,17657,44687,31354,14622,44845,17556,5259,44674,17527,45262,44766,18279,44711,45346,17703,18794,18042,43800,17351,44858,18237,17237,45180,44861,44835,45042,9341)
Unknown column 'np.person' in 'where clause'