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 (30986,44685,18279,44765,44640,18794,44836,44848,17009,45518,17527,44687,4765,44861,13922,18719,44870,18894,44531,44669,44711,45286,18446,17335,6862,44856,44766,44875,17981,18650,17771,43800,44835,19078,17904,8753,17114,44869,17237,17848,30963,18996,44739,45177,6609,44689,28530,5388,18237,44764,45043,45567,34194,45517,24411,17756,17835,5993,17556,18042,44878,45421,3883,17492,44894,44866,18286,44853,6782,36472)
Unknown column 'np.person' in 'where clause'