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 (44671,18042,45421,44674,18430,44884,44894,17114,17092,45177,36472,45072,44531,18894,17848,44764,30135,44640,6782,45567,28530,13425,37267,17981,18286,17904,45051,43800,44855,44836,17755,5410,44854,17657,17351,44762,3,17703,30963,18237,44851,44856,44837,18650,45042,44767,9341,44768,17278,44867,24441,17492,17839,44685,24411,17556,31354,5259,44869,44775,44861,45286,18981,18996,24412,30986,18648,3883,45346,44739)
Unknown column 'np.person' in 'where clause'