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 (44640,18237,17848,19078,17755,28313,45072,45229,45042,18652,17904,18301,17492,45051,30135,45516,44762,44768,13988,17835,14402,13922,34194,45043,30963,44865,44669,18648,18427,44878,5993,24411,19057,44835,30986,17703,16935,18353,10402,44687,44689,14622,44531,18279,44856,39676,44861,44851,31354,44765,44764,13425,44739,18688,5259,17114,45567,44866,44868,17556,45561,44854,18981,18794,44685,17335,36472,32454,17351,5410)
Unknown column 'np.person' in 'where clause'