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 (44531,44861,44685,44711,22509,44766,8753,45517,45051,45042,17601,13988,44873,45262,18900,44894,44851,45277,13425,18446,44848,17351,6862,44869,17981,45043,14402,44878,18719,17009,32454,6782,18981,30963,44687,44775,17755,13922,44765,18996,44884,5259,18652,5993,31354,6609,17335,30986,17703,44856,44689,44674,14622,17492,3883,24412,18648,13,18430,44875,45180,44745,44836,44767,17278,44739,17839,44865,44866,44854)
Unknown column 'np.person' in 'where clause'