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 (6609,45042,44671,45517,44858,30986,44845,17278,18237,44768,44837,8753,44875,44669,45229,24441,19057,9341,45518,44878,5388,17839,18572,45262,17657,17601,28530,44835,39676,5259,18650,19078,17703,18996,18042,44767,30135,24438,4765,44674,17114,17848,18286,18794,45346,37057,24411,44867,18719,18446,44711,17904,28313,24412,44765,18981,44766,31354,18172,6862,17092,17556,18353,45043,5993,3883,44869,44853,16885,45177)
Unknown column 'np.person' in 'where clause'