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 (45516,18279,18301,17835,18650,18719,44894,5410,44685,4765,9341,17755,18237,18648,44854,44764,6609,10402,17981,8753,45286,44689,44856,44640,18652,45180,31354,28313,45072,44853,5259,18172,44835,17009,5388,17756,44845,3883,43800,44858,16935,18427,17351,44851,44848,44865,44873,13922,18572,44766,44762,28530,36472,17492,18430,45051,16885,17556,30963,14622,6862,44837,45042,17335,44863,45515,44884,17839,24441,18794)
Unknown column 'np.person' in 'where clause'