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 (17839,13922,44870,44851,18042,39676,24411,37057,44863,16885,17657,4765,18648,9341,18279,4686,18894,18237,45042,44866,43800,44848,18301,17527,8753,44766,45346,24441,28530,18688,17009,45180,44865,24438,14622,30135,6782,13988,17755,44854,17335,17981,6609,45262,3,45516,17756,17278,44531,30963,45286,16935,18427,44711,5259,44745,44878,44762,17835,18286,17848,44689,6875,45421,13,44837,18652,24412,44765,5388)
Unknown column 'np.person' in 'where clause'