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 (44884,18427,18719,45516,24438,45180,45346,45051,14622,4686,44845,9341,17278,44837,18172,17657,45277,18185,4765,44531,5388,44671,18688,22509,24441,10402,44775,24411,17848,18794,18894,45229,44765,44867,45517,44861,30986,17237,45421,44766,5410,45286,44674,18650,31354,17756,3,18572,45177,6609,18446,17835,18430,17114,13988,45072,36472,16935,8753,18279,44640,43800,44836,44689,18353,24412,17556,17527,18981,44853)
Unknown column 'np.person' in 'where clause'