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 (18648,44762,6875,22509,13922,44858,18719,37057,44853,44531,44854,17904,44851,44869,37267,45567,18237,17556,44849,18650,44855,44768,43800,44884,10402,28530,32454,45286,18042,45180,44767,6782,18900,18279,28313,44861,36472,44775,24438,44685,45515,24412,30963,17756,18981,13988,18353,44865,44845,44711,18996,44669,44739,5410,18794,44836,18894,31354,44866,6609,18572,13425,4686,19078,9341,18286,44870,17703,17601,44765)
Unknown column 'np.person' in 'where clause'