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 (24441,28530,14402,17092,17601,17492,44884,18688,18172,18430,44861,37057,18894,44851,17981,43800,45180,44687,28313,34194,37267,39676,18719,45516,18353,13425,44853,10402,45177,44531,44766,44868,18648,44768,6609,44745,44855,44869,44867,45518,44894,17351,17771,19078,16935,18900,44858,44674,17703,45051,45286,17835,4765,44875,45421,24412,17755,31354,44878,44866,44671,18794,18185,18237,8753,45042,44765,44685,32454,5259)
Unknown column 'np.person' in 'where clause'