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,36472,18430,18981,17771,18900,44865,44531,18650,44873,44858,18427,45277,44884,24412,44687,13,4686,24438,19078,3,17835,18237,18894,44762,24441,45567,44768,44867,17237,44869,44878,16935,44640,16885,18996,44875,6782,5259,22509,17492,44765,44845,44894,17839,17601,31354,44764,13988,44851,13425,45042,44837,45518,45051,45262,17009,44853,44836,28313,45516,44870,45515,18185,18648,17981,18652,44766,45072,44775)
Unknown column 'np.person' in 'where clause'