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 (44689,5388,18286,18652,45042,44894,4686,30963,30986,45043,44869,8753,44866,24412,18301,14402,18279,44685,18981,16935,45518,18900,44870,18894,37267,45262,22509,13425,17657,45072,44854,5259,17703,28313,19057,44865,44640,9341,44849,45516,5410,17492,17771,14622,37057,44873,45561,24441,44739,44875,44848,44775,18688,36472,17335,45180,24411,6862,17755,17848,17114,45277,45229,18185,19078,44856,3,44845,18719,17601)
Unknown column 'np.person' in 'where clause'