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 (13922,44849,14622,18172,44766,45042,44851,18237,30963,44867,45051,44671,32454,30135,17092,18648,44853,44775,24438,18981,45072,17755,18279,28313,5388,45561,44873,18996,6875,19057,3,44669,4686,18688,18427,16885,19078,17703,5410,44531,17335,44863,44837,18894,44835,44836,18652,17835,17771,24411,17492,31354,45421,17657,22509,18042,17351,44854,30986,45518,18185,24441,44845,44869,8753,28530,18430,39676,45262,44640)
Unknown column 'np.person' in 'where clause'