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 (44531,17351,44873,28530,6782,30963,17755,45516,17904,45517,19078,44739,17848,10402,17839,18981,44869,44689,45561,17601,17278,18996,44836,18794,44835,3883,36472,44685,44669,45229,45277,18894,17771,44768,30135,44861,17703,31354,45043,44848,18042,44868,9341,44866,17492,44745,44671,18648,17092,18572,16885,37057,14622,6609,44894,18301,45518,18650,44884,24411,18427,17009,18652,44855,4686,24441,8753,44851,5259,17657)
Unknown column 'np.person' in 'where clause'