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 (6862,44868,30963,45043,44884,44869,14402,44851,28530,17904,18427,44762,44767,18042,44768,13922,45517,45561,18719,17755,44739,18894,17839,45567,44845,17657,44873,19078,8753,17601,9341,45051,4765,44848,31354,18301,5993,44837,24438,24411,17009,17835,17771,17492,44849,24441,45421,19057,18794,18652,17556,13988,5410,16935,44870,18900,44858,17114,14622,17981,18648,44856,44531,18172,44689,44674,17756,18981,17278,5388)
Unknown column 'np.person' in 'where clause'