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 (44745,44853,13,5388,44869,4686,45051,17237,17601,17771,3883,44865,44837,44868,44855,32454,6782,13425,17527,17835,6609,17839,45567,45286,5259,44845,24441,44767,45517,5410,13988,45516,28313,45421,44765,18572,17278,17351,44768,17335,18719,6862,45346,44669,39676,17556,44863,6875,18172,44870,44858,18996,31354,18894,44674,44689,45515,24438,24411,44866,45042,44854,44873,45277,18648,45180,44867,44739,44849,44766)
Unknown column 'np.person' in 'where clause'