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,13988,17904,4686,10402,18650,18301,16935,44858,3,9341,18652,17492,17237,44878,45043,16885,44711,18794,17657,45421,3883,17703,14622,18353,44870,6782,17092,44849,45567,44865,5259,24412,44867,45346,44767,17601,44848,18572,44866,18172,45516,4765,17278,8753,44837,45517,44853,44863,45262,18286,44868,18894,44764,13922,18996,5410,43800,24441,17771,30963,45561,19057,19078,18688,28530,44531,18648,44775,45051)
Unknown column 'np.person' in 'where clause'