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 (4686,19057,45561,44855,19078,24441,44849,18279,44884,18430,44768,44836,22509,17335,45516,43800,44765,30135,18185,36472,32454,44869,17771,17755,44837,45286,17601,18688,45346,45043,6875,44685,44854,18650,13988,3883,9341,45229,17237,17981,44745,44894,17839,39676,44762,44866,17848,16935,44870,44863,44873,17351,44689,44875,31354,17527,44766,18894,17092,18996,44764,18237,18042,30986,4765,45051,5993,5259,17904,18981)
Unknown column 'np.person' in 'where clause'