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,18172,43800,8753,45042,6875,31354,44837,45277,17756,44764,44878,44867,4686,44745,34194,36472,6782,44870,39676,16935,18996,6862,4765,44865,3,9341,17601,45072,45229,5410,30135,37267,30963,45262,5993,28530,17114,44674,24411,18981,10402,3883,45043,22509,45177,44873,18279,17335,14622,17839,44856,45051,45421,17492,44869,18794,44845,17771,18042,45517,44687,18719,44836,17981,18894,44861,18650,44762,44671)
Unknown column 'np.person' in 'where clause'