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,45043,45567,18172,19057,17839,14402,18719,3883,17657,45072,5388,44853,45177,45277,44868,45180,44739,28530,5410,44861,32454,44767,9341,44849,24441,17114,44689,45286,17278,45561,18794,17981,45042,13988,6862,6782,18430,16885,45051,18042,18301,13425,37057,18286,6875,18353,39676,17527,30963,18900,44836,5259,44878,36472,13,14622,6609,44866,17009,44711,44884,17904,22509,28313,18650,18981,43800,4686,44640)
Unknown column 'np.person' in 'where clause'