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 (44867,17848,24441,45229,5388,44767,28530,44845,14402,5993,17835,6782,18172,18652,44863,18900,44848,44671,24411,44875,17601,44669,17981,44869,18894,17904,9341,45180,44531,44687,44870,18572,18446,45561,44853,13425,19057,45515,44765,45421,17771,30963,18279,17756,45517,45072,5410,19078,37057,34194,45346,24438,3883,18286,44762,44837,13988,43800,17335,17839,45286,18185,18688,45043,44868,17237,28313,18794,16885,18427)
Unknown column 'np.person' in 'where clause'