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 (44858,44845,44869,17278,18719,17904,17703,44674,16885,18042,13,44856,28313,45177,45516,22509,17848,44873,44870,45515,44685,45229,14402,18652,44671,18301,18237,17092,4686,19078,44767,44837,45286,17756,30986,13425,3883,44868,44878,3,44669,44855,17771,24411,18650,44894,18894,36472,28530,44854,44764,45051,44867,9341,44836,18353,17839,6862,37057,18900,17009,44848,17335,44766,44853,45072,18572,45518,18981,18430)
Unknown column 'np.person' in 'where clause'