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 (44866,44775,44853,45518,18900,17771,44671,45515,32454,45180,37267,44869,18427,44531,44669,45516,43800,3,44863,17351,10402,31354,17756,36472,19078,44745,44845,17835,3883,14622,24438,17657,30135,18042,28530,17009,44837,14402,17092,18996,44765,17904,18650,6875,44762,45346,17114,18794,45043,45177,18652,17703,13988,34194,44835,44867,4765,17601,45042,45286,44689,18981,44685,17848,44766,44856,17839,28313,44767,44640)
Unknown column 'np.person' in 'where clause'