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 (18430,45346,8753,18996,17904,17839,44853,44835,45561,18688,44878,43800,30135,18648,44767,17755,44775,17756,44866,44674,16885,6782,37267,44851,13,44640,17657,10402,37057,17351,3,44863,17492,18237,19078,18719,17556,3883,13988,18185,5388,44711,18172,24438,30963,4686,45277,44765,45515,17092,44768,18446,44764,44685,17278,6862,44849,44867,44884,17114,14402,45567,44858,45518,13922,44762,28530,45229,44870,18650)
Unknown column 'np.person' in 'where clause'