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 (44851,18794,14622,18185,44640,18430,17278,17092,17756,24411,5410,18652,44835,44775,44531,30963,44745,44868,45567,45229,18894,18996,31354,19057,5388,18981,44768,3,44866,45043,37267,6609,44861,45561,44837,24441,17492,24412,17703,4686,30135,44863,44671,44739,28530,44669,44766,19078,45286,18286,18172,13922,17657,18446,45262,17335,28313,17114,44711,17755,44853,30986,44873,39676,8753,17904,44884,44674,18042,44685)
Unknown column 'np.person' in 'where clause'