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 (44865,44764,17756,44775,9341,28530,17904,44835,44849,17601,44767,5388,44669,17703,44837,44762,45043,45518,44848,18427,13425,45262,5259,18894,17335,44739,19078,44868,13988,14622,36472,44768,44836,13,30986,44861,6875,17009,4686,44858,44711,18237,17848,44851,17351,13922,37267,44894,24438,18279,17755,44854,18996,31354,18650,45286,44689,17527,5993,45229,44884,37057,39676,44869,17981,17657,17237,34194,45515,17092)
Unknown column 'np.person' in 'where clause'