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 (45518,44775,43800,24411,32454,24412,17756,18237,44858,6875,18353,5410,4765,5259,45517,30986,18446,45561,45346,44768,17114,28530,44849,13425,18981,44687,10402,17492,17601,44836,17848,17839,17009,18996,44835,44762,44764,31354,18286,44674,13922,44854,44767,17237,44711,44868,18894,18688,30135,44531,28313,45043,14402,24441,5388,37057,18430,17335,14622,45286,44766,45277,13,44870,44853,44669,44765,44861,44878,17755)
Unknown column 'np.person' in 'where clause'