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 (3883,3,45286,18237,17835,44836,24438,5410,18652,44867,18900,45180,44640,17092,17009,17981,45177,17771,44764,32454,44851,44855,13922,44854,44674,9341,34194,44685,45277,44837,18572,18353,8753,19078,17848,44687,37267,17527,17839,16935,44878,18981,6782,18446,30986,45229,18688,18648,44835,18042,18427,4765,45517,44863,18894,6875,44711,24411,44894,17237,18301,4686,45567,17114,45346,17492,39676,31354,44858,45043)
Unknown column 'np.person' in 'where clause'