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 (34194,14402,17771,5388,13,16885,44531,18688,44870,44689,17755,44861,19078,45561,44671,45515,44674,44884,5410,45042,44739,18279,18894,44685,5993,18650,45517,30135,44849,45072,18185,32454,44767,18172,44851,18648,17756,18652,17351,45516,24438,28530,8753,17703,17009,45051,31354,44855,44766,19057,18042,18286,44845,44836,44837,6609,4686,17848,45518,44711,44669,45277,13922,17835,45421,44765,44865,17839,22509,24412)
Unknown column 'np.person' in 'where clause'