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 (44836,44875,30963,17771,18353,17657,43800,44669,31354,17492,18981,36472,44687,18427,6875,44711,30986,44674,44858,45561,18719,17756,17755,17114,45277,44873,18301,17092,44531,30135,44884,45229,18286,28313,37057,17527,44868,4686,45286,19057,18446,6862,4765,44835,45180,44870,18652,17904,39676,44689,32454,18648,45517,44856,45262,18172,9341,17278,22509,24441,44775,18042,44845,45177,44894,44855,17601,45515,34194,17848)
Unknown column 'np.person' in 'where clause'