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 (45286,43800,17981,17848,44851,44837,44739,34194,17092,5993,44531,44845,44849,13,45518,17839,44863,44853,44762,14402,4686,13425,44687,32454,45516,17703,17527,17114,44867,5388,4765,45346,39676,9341,3,45561,17657,18353,19078,45262,19057,44873,5259,45517,18427,18719,37267,17237,45042,44775,18572,44861,6609,44858,44711,44836,13922,45515,44669,44768,18688,18301,45072,30986,16935,18900,45043,45421,44865,44765)
Unknown column 'np.person' in 'where clause'