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 (8753,45229,45567,45421,17755,45042,44766,5410,24411,44671,44768,45561,6609,30963,44745,44775,17839,18279,44848,37267,18042,44764,28530,37057,17556,17114,45346,4765,44855,16935,44640,18981,18719,44867,44767,44861,45262,44863,18794,28313,18894,24412,44837,18650,9341,18900,44854,18430,44875,39676,45517,44711,17771,19078,22509,17009,18301,14402,44894,18185,44685,44762,18172,44856,30986,18427,32454,17092,44866,44765)
Unknown column 'np.person' in 'where clause'