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 (39676,44848,44764,24412,44671,45561,17527,45277,18572,17981,44745,17351,28313,5388,44856,44762,45262,45516,44868,22509,17492,44875,45043,19057,45421,6875,17009,16885,17657,45042,18648,18185,44766,44739,37267,44858,18042,30986,44531,30135,6609,14402,43800,45180,17114,45518,45229,17703,44867,17756,13425,17771,44845,18172,8753,19078,18430,17835,18894,18996,6862,44869,44855,18652,10402,44835,24441,17092,44689,37057)
Unknown column 'np.person' in 'where clause'