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 (44765,44854,39676,8753,17527,30986,44762,24438,5410,44858,44775,18648,44768,24441,44835,31354,44689,45561,17114,44531,44875,44863,6862,43800,17492,17009,13425,18894,10402,44836,44739,45180,18446,44873,13,18688,45516,44674,18719,45346,24411,4686,32454,37057,17756,17848,45567,34194,18286,17981,19057,44671,22509,45517,45072,44711,45421,45286,17335,44845,18185,18237,17755,4765,44640,6609,45515,3,18794,44848)
Unknown column 'np.person' in 'where clause'