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 (16885,44775,17848,44640,44835,17492,44878,14622,17278,18446,18900,44767,10402,3,17527,18996,18353,45518,45042,18301,17755,18172,17556,45051,17771,45072,44865,17009,18286,34194,44669,18981,44870,45561,45262,44687,17904,24441,24412,9341,18427,36472,44873,18894,44849,31354,5993,22509,37267,32454,18185,18430,16935,19078,8753,45286,45516,17703,44894,45421,45177,44848,13922,30135,44689,44855,5410,30963,17835,45229)
Unknown column 'np.person' in 'where clause'