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 (6782,6862,5993,45262,10402,44848,44854,44870,18572,44873,18688,17114,44745,37267,45177,44835,44739,45277,17771,17335,13988,31354,44767,17492,18650,5259,44853,18430,45515,18996,18446,17556,18286,17278,34194,44711,18981,43800,45043,18719,45072,18652,24438,45346,44669,44865,30963,45229,9341,44867,18353,18794,45517,14402,44531,18042,45561,17835,44866,44836,44775,45567,14622,5388,44674,44858,44894,39676,44764,44685)
Unknown column 'np.person' in 'where clause'