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 (17981,45051,45229,13,17771,44669,44640,44858,30963,44835,44869,17839,17703,44767,17527,45072,28313,44849,43800,44689,17351,44856,13988,45262,18648,17657,44884,16935,17601,18900,45277,17848,30135,17335,44775,19078,44866,45518,45515,44848,44878,9341,4765,14622,44867,18894,18430,44745,19057,8753,44739,44853,44836,5259,3883,44762,44861,3,44711,44870,18981,6862,44863,18446,37267,5410,45517,17756,6782,5993)
Unknown column 'np.person' in 'where clause'