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 (18572,44837,45561,18185,44745,3883,22509,28313,44851,17756,18430,44685,44640,44531,18237,5259,45277,4686,17114,44869,32454,18427,44867,8753,44674,45518,45346,44894,19078,44849,44671,44687,44739,45262,24438,13,31354,44884,17981,44762,36472,17351,45515,44873,45177,45286,44765,17556,17278,45072,16935,45042,17839,44711,18981,18688,24441,30986,44669,44768,6609,44875,17771,44855,45229,44689,44878,44865,45180,44856)
Unknown column 'np.person' in 'where clause'