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 (17904,17848,16885,44894,13,44849,44868,30986,18900,44861,32454,44875,18427,44866,17092,18185,44531,44764,43800,44685,45042,24438,18688,44671,44775,44689,18279,44867,22509,10402,28530,45421,18172,19057,6782,17114,44837,34194,17351,18430,18794,18572,17703,18301,44766,44869,13425,44855,44687,44640,44878,19078,44854,13922,9341,18650,6609,18648,44865,45051,45515,17756,44669,44845,5410,13988,17657,44836,18237,17981)
Unknown column 'np.person' in 'where clause'