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 (30963,16885,44836,10402,13425,45177,32454,24411,18900,17657,6862,5259,18688,18279,17981,5410,18652,44869,17756,44878,44767,24438,17839,44848,31354,44837,45229,14622,44863,45517,18794,18172,44868,45286,44853,44762,17335,18286,6782,44674,17527,44894,18427,18430,18648,18185,44867,44531,5388,44765,17556,17601,34194,19078,44856,44640,45277,44851,44689,36472,30986,28313,17009,5993,44739,44866,13,44884,45421,4765)
Unknown column 'np.person' in 'where clause'