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 (31354,37057,44867,30986,17527,5993,17835,44855,44762,45072,44856,18652,16935,18572,30135,44853,45561,4765,45286,45180,44868,45346,45042,6862,45229,5388,17278,24438,18301,17114,44845,45421,18688,16885,9341,17839,24441,18427,14402,45516,44836,44873,44531,44849,17492,18894,45515,17237,34194,18286,17904,17556,18172,28530,44711,18237,44878,44775,18279,45051,44870,6875,24412,44685,44764,17755,45177,24411,3883,17351)
Unknown column 'np.person' in 'where clause'