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 (44765,37267,18430,45346,44687,45517,17657,18237,28530,44845,45515,14622,6782,44870,9341,44835,45262,44884,24441,30963,44865,18353,17556,44894,19057,45043,17114,28313,18981,18042,45072,17756,18427,44866,44878,5410,17092,18446,44848,39676,45042,5259,44669,17839,44768,18185,44856,44863,44766,44762,18794,45518,17278,18286,44869,44868,6875,43800,5993,3883,44767,17755,45516,13425,45421,18648,45277,44837,44689,17703)
Unknown column 'np.person' in 'where clause'