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 (30986,22509,17556,44858,18981,28313,18446,17092,18301,17009,13988,44689,18237,44870,17981,18430,44835,10402,18894,18794,45042,36472,44866,45051,6875,44854,17237,17351,5388,44851,5993,18648,24441,45072,14402,18353,44674,32454,31354,4686,8753,6782,4765,18572,44848,13425,17335,37057,45421,44865,19057,18900,14622,17756,17492,37267,43800,17835,44687,5410,45043,44867,44837,45229,24411,44849,17771,44762,44869,18652)
Unknown column 'np.person' in 'where clause'