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 (36472,6609,44853,44868,16935,44884,17556,18572,44875,30963,8753,17755,44640,44865,18894,18430,43800,10402,45229,44854,5259,6862,39676,18900,18650,17981,14402,14622,24411,34194,37267,44671,17092,24412,44848,45277,44870,44674,4765,45177,30135,18172,30986,17848,18237,6875,17756,44739,17839,37057,17114,44878,44866,45042,44855,5410,22509,44849,17527,44863,44765,17335,44837,44851,45286,18279,44775,18794,17657,44869)
Unknown column 'np.person' in 'where clause'