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 (10402,44863,44845,45516,9341,18650,17904,44866,6782,44894,44853,32454,44849,44836,18572,13988,44685,17092,45262,17492,6875,44689,44674,18430,18894,44884,5410,45072,39676,18981,44868,34194,17771,44851,18042,44768,45515,18996,44531,13922,44870,17756,18286,44762,17848,44711,44745,19057,36472,18652,44669,17703,24441,44640,44848,8753,44855,17556,44767,31354,44861,45561,44671,44835,17351,16885,22509,28530,28313,17278)
Unknown column 'np.person' in 'where clause'