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 (45561,17237,45515,44671,44669,44869,45286,44711,18279,45051,44861,45277,18794,44768,44775,34194,5388,4765,18185,17835,45567,17839,45042,17335,5993,9341,44835,44674,18688,17657,44689,44866,28530,31354,44745,18286,10402,18427,32454,45518,18446,6782,13,44849,6875,44765,44764,45421,22509,18237,45072,44836,44685,24411,18981,14402,39676,44884,19078,18042,18719,36472,44855,44762,44875,5410,44845,17703,44767,44878)
Unknown column 'np.person' in 'where clause'