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 (44858,44674,45072,44848,18286,18301,44768,31354,44531,17755,44766,18427,32454,36472,44687,24411,45517,4765,17335,44711,30135,6782,43800,18996,9341,44866,18572,13988,17839,17981,44835,3,17904,17351,45515,17492,45042,13922,17237,5993,16885,18353,5259,18894,44873,18185,17278,44762,44849,17556,17527,8753,18042,44767,18446,44855,44669,19057,6609,18688,45262,44775,44878,45286,45229,39676,44863,45421,17835,10402)
Unknown column 'np.person' in 'where clause'