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 (32454,18572,17237,45346,43800,44867,44764,17657,8753,17771,16885,45515,34194,18172,17114,44837,45072,17904,18427,44767,44674,44687,37267,45517,45561,18900,17092,17835,44775,45042,16935,18650,17981,17703,44768,44878,3883,14402,44856,18996,18353,44685,24441,17839,17492,18430,3,44835,17009,6609,39676,4765,17335,5259,44870,17278,37057,44855,44866,44531,44845,45229,5410,19078,6875,18894,44873,45518,18237,19057)
Unknown column 'np.person' in 'where clause'