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 (18900,44858,19078,16935,24438,45346,45262,4765,43800,6875,18446,17904,18237,18688,17351,45177,44765,13425,17601,44855,44768,8753,44689,44884,5259,17756,31354,3,17527,45180,37057,13922,44878,45286,34194,44671,44851,6782,18572,45277,18279,24441,18794,17835,18185,9341,39676,44674,44875,6609,44775,45229,17981,44867,45518,44849,18894,44861,44687,44894,45517,44866,44685,17839,18353,44762,45072,22509,37267,10402)
Unknown column 'np.person' in 'where clause'