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 (45277,17835,44868,17092,44861,45567,17527,30135,31354,44869,10402,30986,28313,6609,18648,44878,3,18894,5388,17657,13922,19057,44762,32454,44858,45421,37267,45051,24441,44845,45229,44671,24412,18446,17601,4686,18900,45177,45180,45517,28530,44689,18427,17848,44765,18981,44867,44745,17981,44764,44674,18688,44894,16885,18430,44863,45042,45518,36472,45072,18650,44849,17703,45286,24411,45043,44854,44669,44835,6862)
Unknown column 'np.person' in 'where clause'