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 (44858,44870,17351,3883,17492,4765,28530,13425,37057,45043,45567,45262,45561,6782,44764,17771,17092,44837,45051,45421,18572,18286,17835,45177,34194,30986,45286,17904,17601,17237,13988,24412,44861,10402,4686,44853,44669,18353,30963,45042,44767,44878,18688,44745,44687,44711,9341,18042,45229,44671,44835,17703,24441,44865,17839,44766,44765,14622,45516,13,45072,17009,18427,18446,16885,44775,44863,5410,44869,44674)
Unknown column 'np.person' in 'where clause'