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 (17556,13988,39676,4765,44689,18996,17237,44866,44835,18353,17981,44531,18719,45043,6875,19057,45051,45072,43800,17756,6609,44836,44870,45180,18301,45516,18430,45346,18650,44685,18648,16935,6862,22509,44640,44878,44764,19078,18981,17771,31354,10402,3,44745,30135,5388,45517,44875,24438,45561,44856,18286,18900,44894,17755,44767,44861,18894,44858,45042,44669,44855,44867,37267,44869,44671,44739,18446,18688,9341)
Unknown column 'np.person' in 'where clause'