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 (43800,17601,18996,45516,18650,44674,44894,44863,17904,17756,45072,18446,37057,8753,45517,17092,28530,18719,5993,44775,36472,45262,17835,44689,44867,18652,5410,18900,14402,5388,44854,44858,4686,6782,18688,17556,44739,45042,45567,24411,44835,44767,18301,31354,14622,44855,28313,17527,17492,17848,5259,34194,18042,19078,44870,44866,18981,44640,44765,10402,44762,17335,18572,44669,17657,13425,18894,45421,18237,30135)
Unknown column 'np.person' in 'where clause'