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 (45567,24438,17278,13922,44765,13,30135,18652,43800,3,28530,37267,18650,44689,17981,18286,5259,44835,24441,9341,18996,24412,19078,44867,45277,44531,45516,44858,5410,16885,44856,8753,5993,44739,44775,45177,45229,45043,30986,17351,17527,45421,13988,44837,13425,44865,44863,18279,17848,34194,17092,17556,18894,44762,45286,44869,44767,6782,44669,18719,45042,44866,44875,17601,44873,44861,44854,44849,44870,31354)
Unknown column 'np.person' in 'where clause'