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 (45277,17657,45516,44767,13425,45561,4765,30986,30963,16935,17492,5259,17839,18894,6609,18996,6862,18650,30135,17703,18794,17771,44894,24412,45567,24441,19057,44865,18688,18648,17835,44867,31354,18652,17755,45042,34194,44854,14402,44851,44858,17351,18430,5993,45229,44836,44674,45517,44766,45346,44835,16885,44856,44870,18172,44687,17335,17601,32454,18427,10402,44739,44869,22509,5388,39676,18279,17756,24411,18981)
Unknown column 'np.person' in 'where clause'