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 (44875,17904,24412,18185,44858,44865,18042,44855,44853,6875,17351,43800,34194,44863,5388,24441,45229,45286,44674,18279,4765,44861,10402,28313,13922,44531,17835,44870,44868,18430,18652,45561,44837,44851,18427,44764,44671,4686,28530,18981,13425,44640,32454,44845,44836,45043,44689,5259,44835,18572,44873,45567,18286,17839,18237,44768,17009,24438,44685,30986,45051,8753,6862,44856,17335,14402,14622,17771,3883,13)
Unknown column 'np.person' in 'where clause'