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 (44853,45561,30135,22509,17527,45177,37057,18185,18572,17703,4765,44845,28313,45051,39676,44868,44851,17335,17492,44687,44766,8753,44671,3,45043,18652,17848,44866,44873,16935,44689,44674,16885,18353,45277,19078,18301,5993,17839,5388,6609,18719,17835,45515,6875,44856,44894,13922,44869,44767,44836,44764,18894,45516,45517,18042,18286,36472,45042,44875,10402,44765,13,44835,44855,44768,18794,44669,44858,14402)
Unknown column 'np.person' in 'where clause'