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 (32454,44687,44855,39676,16935,5993,44894,17556,17351,44765,13425,17848,5388,18650,17335,45286,45561,28313,44531,44863,18794,45043,30986,44745,22509,44870,45517,6609,4765,44837,44836,44671,44867,44849,17981,18996,17601,18353,6782,44845,44868,34194,45567,18286,17835,8753,30135,19078,17092,18042,44764,44856,17904,44884,44766,18237,17492,44861,24441,18430,45518,9341,24438,43800,30963,45421,18172,44768,18185,3883)
Unknown column 'np.person' in 'where clause'