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 (17839,45518,17601,18688,28530,44849,44868,44775,18446,30135,17981,17114,18430,45277,44762,36472,4765,5259,4686,44689,10402,45229,43800,37267,9341,17527,44867,17756,44884,44837,17703,32454,45517,44894,17492,17771,44858,17835,17335,45072,44853,18185,44674,28313,24411,44855,16885,22509,45567,44878,18900,13425,45515,13,44669,44767,17556,6782,44685,18279,5388,19078,13922,44870,45286,45561,5993,18042,18301,45043)
Unknown column 'np.person' in 'where clause'