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 (6875,18446,5388,17755,17657,45180,45043,45421,44836,18572,45042,17527,44849,44685,17601,17756,16885,44835,44869,18279,44861,44745,44674,44856,24412,17351,18719,13425,45286,44863,30963,45518,44867,28313,6862,44894,18237,44853,14622,17835,5993,44837,19078,18427,44878,45072,44875,44884,45517,44775,30986,45515,17771,13,17092,44866,44687,18042,44671,44766,13922,18430,44845,18185,18981,44767,24441,18648,5259,6609)
Unknown column 'np.person' in 'where clause'