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 (45561,18894,44837,18353,18301,44878,14622,44671,44765,44835,44766,45515,17092,17981,44674,44764,45262,28530,44873,13425,44687,3,18652,44689,24441,17527,45051,31354,44875,44870,45516,6862,17278,24412,44640,13,5388,44739,45346,6609,45517,5410,44865,5993,17835,14402,32454,18981,18900,17114,39676,44856,17839,18237,10402,18648,44884,44767,18650,44853,44836,30986,34194,44762,44868,22509,44863,44867,44531,9341)
Unknown column 'np.person' in 'where clause'