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 (30986,45262,44866,17527,18353,17601,44884,17981,17835,18794,18185,14622,10402,45277,44870,18652,44865,43800,44878,44837,45072,44711,24412,17756,44854,44674,18719,22509,17848,39676,44745,5259,17237,17771,17657,44687,44766,44775,17703,3883,18286,44669,17839,45177,45517,18688,45346,45051,18648,4686,16935,44762,18572,4765,17492,44836,44853,34194,44863,5388,18981,18430,31354,3,18446,44531,18172,44685,45515,30963)
Unknown column 'np.person' in 'where clause'