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 (44674,18185,45346,32454,18981,44866,45561,44531,18900,44894,44863,45517,43800,17839,45051,44669,44865,19057,39676,24438,13425,17009,44836,13922,44739,14622,44873,6875,44870,3,16935,44835,37267,45229,28530,4765,45262,18996,30986,6782,18652,9341,44685,44848,44765,5388,45180,44854,18572,44875,17351,5410,44869,4686,18719,16885,18650,44867,44775,45518,45567,18042,44849,44766,18279,44861,18648,17981,5259,17335)
Unknown column 'np.person' in 'where clause'