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 (18237,18981,17556,18572,30963,45567,24412,45517,45262,16885,44845,18185,37057,17839,45277,3,32454,17009,28530,45515,44685,44767,17351,6862,17703,45177,44837,18719,31354,17771,44865,17835,18652,18648,44884,44669,17278,17755,44867,44768,44894,44869,44875,45051,45042,44674,18301,45421,18900,17237,44851,24441,44765,24411,28313,44687,44878,44764,44739,22509,44868,44689,45180,5259,18279,17756,30135,5410,19057,17657)
Unknown column 'np.person' in 'where clause'