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 (19078,37057,44767,9341,45286,16885,18430,5388,44835,17703,44711,44766,6862,17904,44894,18185,17556,13922,44762,39676,44848,44875,45517,44870,44689,14622,44745,44856,18172,6875,13,5259,17527,36472,24411,44739,44873,45518,45561,17601,18301,44849,44775,19057,4686,44855,44868,16935,17335,44884,18427,44674,44765,17092,45262,17771,37267,18894,17492,32454,31354,17114,17981,18042,17839,45516,45515,17237,18353,30986)
Unknown column 'np.person' in 'where clause'