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 (44854,6782,44863,18652,18648,13988,18572,4765,44894,45229,13922,17092,18981,45042,44762,44848,18894,44689,44767,45516,14402,17114,44764,30986,44856,18900,45561,17492,45180,45051,17981,36472,17756,17835,17657,18279,44745,22509,44531,44865,17556,44835,24438,18794,5993,44851,18286,37267,44855,44878,44671,24441,8753,39676,31354,30963,32454,9341,44866,44849,18446,44873,18650,17755,44858,6875,45072,45262,44711,44870)
Unknown column 'np.person' in 'where clause'