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 (45262,18353,44849,6875,6782,44884,18648,44863,18237,45043,45561,44685,37057,16885,18719,44867,44640,17351,43800,45177,44689,5259,5410,44835,44869,6609,39676,18446,22509,17703,45180,24441,17756,18894,44848,13922,44765,17848,30135,24412,44768,44531,44845,17755,13425,44866,44711,30986,44856,18572,17492,44775,45277,44674,9341,45567,34194,17237,45286,18981,44870,18794,44687,44873,44861,17009,14622,13988,44739,45515)
Unknown column 'np.person' in 'where clause'