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 (45421,44870,17556,45516,8753,19057,6875,6862,17848,17351,44669,32454,17756,14622,18981,44762,18894,44868,17835,5993,17092,45567,44764,44837,44835,45177,14402,18719,44836,44856,44745,16885,17771,6609,18427,10402,44531,24412,5388,3883,24441,22509,39676,9341,28530,18900,44867,30135,45515,18042,18185,30986,37267,45277,44845,44863,18688,18648,44775,44687,44853,44861,44765,18446,18286,44858,18353,17114,31354,5410)
Unknown column 'np.person' in 'where clause'