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 (44870,17009,17755,17657,4686,45516,44775,44685,4765,44866,45072,18172,44671,10402,45043,24438,44856,17351,37267,19078,16885,37057,45561,16935,44868,17601,45262,5993,44869,17835,44768,44764,45177,44762,19057,17904,13425,44855,44873,44739,36472,17278,5259,17237,34194,13922,44861,18279,44531,17492,44865,45567,5410,18794,28530,3,18900,17771,45518,44849,44674,6609,45517,44765,44894,43800,24412,18185,18353,44854)
Unknown column 'np.person' in 'where clause'