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 (44875,45229,17492,24438,45515,18301,24441,39676,45177,45277,22509,10402,44640,17351,18981,28530,44851,18894,44835,45517,6862,44775,3883,34194,44739,18996,44868,18185,17904,6875,24411,44858,31354,19078,44866,18427,44711,44863,18042,45051,18353,8753,16935,44894,28313,44878,17835,18688,18237,44849,17981,18572,17601,32454,17756,44765,44856,13425,17839,17848,44766,44531,6782,45516,45421,3,44764,9341,45561,18794)
Unknown column 'np.person' in 'where clause'