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 (44766,44894,16935,5993,17237,18981,44531,17904,44851,18794,44868,45421,37267,4765,44685,13,24438,6782,18353,17756,44739,30135,18172,17556,44858,24441,44745,14402,45177,44856,45517,5259,17839,44775,30963,44854,13922,44853,5388,44767,45516,32454,17848,44870,17492,9341,17657,36472,6862,44687,44855,3883,19078,44863,17351,18650,44762,19057,34194,44765,18185,44711,18996,18894,18279,44837,45262,17114,8753,44845)
Unknown column 'np.person' in 'where clause'