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 (44765,44866,17009,18446,18894,18185,17556,13922,39676,18719,44674,45515,44865,44884,16885,44764,17278,44845,17335,24411,44848,36472,5259,44856,24441,18650,22509,44875,45346,45277,30963,45517,18996,44851,17848,44531,18981,44671,44853,18648,18237,18279,45262,5388,37267,18042,45042,44837,6862,17755,45567,44835,34194,45177,18286,18572,9341,17092,17771,43800,45286,18652,44775,6609,44869,44894,17657,17703,44739,28530)
Unknown column 'np.person' in 'where clause'