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 (18652,24441,44837,31354,44858,45051,8753,18353,17237,45516,18185,6875,44861,17092,45180,28313,45561,17492,45042,45346,6782,5993,44739,44845,18794,45517,30135,44745,19057,44868,44835,18981,44767,36472,45072,37057,17657,45229,18688,24411,45567,18237,44669,17771,45518,44856,17848,17114,6609,44768,14402,16885,18042,45177,24412,44671,44687,44775,17904,19078,17981,17556,44869,45043,17756,44711,44762,17839,44894,30986)
Unknown column 'np.person' in 'where clause'