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 (13425,44875,30986,45346,3,44878,37267,18650,17904,17278,9341,18279,14622,44851,45043,45421,17848,18648,14402,45517,44865,5388,44768,44689,18185,44764,18301,28313,19078,31354,18286,18981,44884,28530,44849,24411,10402,16885,16935,44669,18042,17556,17114,44855,44837,45277,44531,17835,24438,5993,5259,45051,44866,18900,34194,5410,17703,44745,44687,44870,3883,44762,18446,6875,44858,45072,45567,18652,45180,45561)
Unknown column 'np.person' in 'where clause'