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 (28313,5410,44856,45180,6782,17756,44775,44745,44849,44768,18900,44764,34194,18652,44870,44884,45421,45042,44855,45561,44671,17556,17835,24441,18446,17351,8753,44865,17981,18981,44766,16885,24438,18353,19057,44868,17114,18650,18237,44765,45286,44853,18042,18172,44861,45517,18185,44739,45072,44669,13,30135,18286,37267,18794,5388,45346,17009,32454,14622,44873,44762,6609,6862,39676,30963,44674,45518,44711,45043)
Unknown column 'np.person' in 'where clause'