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 (28530,44837,17771,18430,37267,44861,28313,5388,45421,6862,44894,16935,17009,14402,8753,17237,17755,44870,6875,17092,44689,13,6782,24438,44685,17835,17839,18279,17492,44836,44766,18981,44878,44711,24411,17848,10402,44768,45561,17756,45346,39676,45516,44762,44867,45517,45229,6609,4686,17657,3,45567,18719,18996,44669,22509,17351,45262,30135,44674,44687,34194,18427,18652,43800,44848,44845,44764,13922,44671)
Unknown column 'np.person' in 'where clause'