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 (45515,44669,43800,18719,44873,5993,44854,45051,44685,34194,22509,45421,30986,44531,44689,44764,30963,28530,44835,44884,18572,17756,28313,18894,44836,8753,18427,44868,24438,17981,45180,19078,10402,44768,44775,14622,18279,44875,44869,44739,45346,18042,44849,44687,17703,17848,24411,44640,17278,18237,45567,44853,45072,14402,44855,44865,3,17237,44765,17092,17335,18688,5259,6782,45286,45177,4765,45262,17839,17527)
Unknown column 'np.person' in 'where clause'