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 (44861,36472,44531,45561,45421,18894,43800,31354,39676,45515,18279,18572,22509,18301,18650,5993,24441,45229,30963,44873,45180,18981,17335,18430,17848,18427,44875,18794,30135,6875,34194,17492,10402,44766,6782,44687,3,44853,16935,30986,3883,16885,44836,44711,17351,44867,44870,17981,17755,44894,24412,18648,18042,44768,44685,44866,19057,17839,14402,45346,44640,6862,44837,44878,37267,17527,44745,44858,18446,5259)
Unknown column 'np.person' in 'where clause'