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 (44687,24438,44869,44845,28530,39676,45072,16935,3883,10402,17703,19078,18172,44685,44765,4686,18894,44866,8753,17009,18648,13425,44848,44870,4765,18279,18572,44764,31354,44739,17755,37267,44884,17492,44853,45567,17839,6782,44836,17835,17278,16885,6862,45043,45346,44858,18981,45561,5259,44711,17527,14622,45177,44762,18794,18996,30986,9341,17657,5993,18185,45421,44865,45229,44835,44875,44671,44745,44868,44861)
Unknown column 'np.person' in 'where clause'