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 (5259,45177,45421,4765,44768,44849,18185,24438,44531,13988,44861,9341,17237,44836,17657,18042,18719,44870,44837,17835,18572,18446,44866,45042,17527,17278,18996,8753,3,45043,44863,36472,24441,19057,17756,18648,44640,44835,28530,17839,45515,18172,18652,3883,30986,45051,45561,45180,4686,43800,6782,39676,32454,44767,18688,45346,18353,17492,44689,45277,44869,13,45286,44685,44711,18650,34194,44854,44775,18286)
Unknown column 'np.person' in 'where clause'