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 (44687,44875,17556,44767,45229,30986,45346,17981,5410,30135,22509,44689,18900,45286,18286,44849,18042,18648,44866,6609,17771,24438,44685,44868,45051,17114,44768,18794,24411,17839,45042,44853,45277,44845,10402,18894,44851,44865,17278,14622,4765,36472,5993,45177,43800,44869,17755,44863,45421,17904,18430,5259,24412,18996,18237,44775,44739,16935,37057,17848,18719,19057,44873,44848,44837,44854,44870,45567,18301,44640)
Unknown column 'np.person' in 'where clause'