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 (44870,44861,45042,44858,44845,10402,18279,17492,13922,17556,17755,45262,17601,44674,44762,13988,44836,18894,18301,14402,17237,19057,24438,45561,9341,44875,28530,44711,24411,5259,44764,13425,5388,17756,18237,4686,44884,18981,45517,45051,44853,18900,44856,30986,45180,44669,30963,18652,18172,22509,44873,17657,45518,34194,14622,6862,44835,44739,18688,44640,17703,45516,32454,18794,45277,45229,39676,18648,44689,44854)
Unknown column 'np.person' in 'where clause'