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 (44671,45517,45561,44869,44875,17278,18652,44863,14402,45421,18794,24412,18279,3883,44866,30986,44845,18042,44767,13,6782,5410,44531,18172,44853,17756,18427,13922,44861,37057,9341,39676,43800,18648,18430,45515,45516,44854,44739,17601,24438,10402,22509,17771,44711,44689,17492,24441,16885,44669,44762,30963,17848,13988,17351,44745,44849,17092,19078,17009,17114,44837,30135,18572,44870,18996,5259,44765,44674,45262)
Unknown column 'np.person' in 'where clause'