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 (18894,45229,18794,44853,18650,18042,5410,44855,45043,45518,44745,45516,37057,45286,39676,44531,44640,44689,18572,16935,24412,44837,17092,3,44851,18185,28313,18688,22509,44845,44669,17756,17904,17755,44856,5259,18237,17771,6609,14622,24441,44768,3883,44884,45421,18427,17492,18286,17335,17839,45177,44671,18900,44894,45346,18301,44878,17114,6782,30986,18446,45072,18996,44766,44767,45561,18353,18981,9341,36472)
Unknown column 'np.person' in 'where clause'