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 (45277,18286,17657,44711,6609,17835,19057,44853,6862,8753,45262,18900,18279,45043,13988,44775,44848,17756,45561,18185,3,9341,18650,24438,45180,17335,45177,45072,44835,17237,18042,17492,44739,17848,44687,44689,18981,17703,44671,44531,45346,13425,18237,18688,18301,17904,32454,6875,45567,45229,45421,45051,3883,44866,17527,6782,18572,24412,18648,44767,13,31354,43800,18353,44768,44837,34194,17981,45286,17114)
Unknown column 'np.person' in 'where clause'