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 (30135,44767,18042,18719,45517,45180,44669,44873,44867,17492,4686,18648,9341,44762,13988,44775,37057,3883,18794,6609,44848,18981,44865,30986,44866,3,28313,17835,45421,24412,44884,32454,44861,17114,44854,24411,17237,5388,45051,44685,44845,44765,6862,18650,44858,44689,13,24441,45561,17527,17981,17904,44711,44836,45043,45229,45515,45346,45177,44853,14402,34194,44745,37267,13922,17755,6782,17351,17092,44875)
Unknown column 'np.person' in 'where clause'