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 (5388,34194,5259,44848,17756,28313,44765,44687,18900,36472,44853,24441,3,18427,39676,44531,17771,44854,44640,24411,31354,37267,32454,6782,44866,24412,18172,18648,3883,44869,17278,18446,17114,45561,17009,45229,10402,44845,18353,17351,17335,44711,18185,17527,44835,44865,28530,44875,18794,13922,5993,17092,17556,44855,45180,5410,17703,18301,17492,18279,45421,4765,44856,16935,18650,45518,4686,44873,18286,17839)
Unknown column 'np.person' in 'where clause'