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 (18427,3883,28530,37267,44873,17492,44687,44884,39676,17556,6875,44764,44674,18996,45180,18446,45051,44837,44745,30986,17527,37057,45072,16885,44531,18719,45043,44867,45346,44775,13988,18572,44894,17114,5410,10402,17092,44866,17237,45177,17771,3,44739,17848,19057,44869,44875,9341,36472,17756,44768,13,4686,44855,18237,44640,44711,14402,24441,45229,6862,44689,44835,18353,17904,44836,45515,44853,44863,17981)
Unknown column 'np.person' in 'where clause'