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 (44861,44689,45561,17981,45262,44869,17092,45516,18688,44853,44870,45518,17703,17556,44685,44762,18652,24411,28530,24441,44531,18430,14622,14402,13,19057,17755,44884,45051,44878,13425,17657,5993,18172,17756,17114,17351,6782,44873,44836,45043,17492,44875,44894,30135,18185,32454,17835,17839,17278,30963,18719,45567,4686,44835,39676,44671,13922,17848,18794,5259,4765,22509,45346,6862,44865,6609,24412,18042,44863)
Unknown column 'np.person' in 'where clause'