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 (18648,18185,28313,45229,44894,44711,45286,18652,44837,44845,6609,17756,45346,44764,45177,18900,44766,17114,18042,44531,18650,30135,44884,44762,45561,44878,6875,17835,17601,44869,18430,19078,44739,44861,17839,30963,18996,44768,44851,45262,44848,44669,17755,13425,24411,10402,43800,37267,44745,44853,18719,32454,45180,44875,44671,45518,18981,24412,18353,45567,30986,17556,45421,17848,17351,44689,45072,4686,17703,44835)
Unknown column 'np.person' in 'where clause'