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 (4765,44884,18430,44853,18185,3,14622,44640,30963,36472,22509,45421,18652,17848,13425,34194,18427,45286,17092,44764,45051,39676,19078,31354,14402,18237,44689,44861,45262,17981,44739,44768,45515,45516,18172,18446,17237,44856,30986,17278,18996,44845,44873,17756,24412,45043,45561,44671,44869,5993,45072,9341,6862,44685,17114,45229,5410,45517,24411,44849,37267,44745,18286,28530,44875,16885,44762,17657,44835,44765)
Unknown column 'np.person' in 'where clause'