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 (44870,44849,17601,18894,44739,45042,44768,17335,30135,24438,30963,17092,18446,45043,18185,16935,45346,44531,17981,44854,17756,17278,5259,44767,44863,18688,34194,44685,17848,17492,13,45517,31354,45180,18572,13922,44674,8753,17771,17755,17835,18981,45286,44867,44865,17556,22509,39676,18353,18900,44884,44853,18427,13425,44845,6609,44745,30986,16885,44711,24441,45177,17114,17237,18042,10402,17657,44765,44671,44873)
Unknown column 'np.person' in 'where clause'