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 (18648,44848,17835,28530,6609,44870,17492,45516,44878,30963,18353,17335,44766,3,44869,19057,18996,44687,6862,17092,45346,14402,17904,17839,17009,18900,13922,45286,45515,17703,44875,44855,44868,5259,39676,24412,18719,19078,45567,30986,18237,44640,18688,44837,16885,17114,45277,44867,17755,44767,44745,44835,44775,18794,44849,22509,16935,6782,17657,17771,37267,13,45051,44689,44685,44531,18430,44866,17351,18446)
Unknown column 'np.person' in 'where clause'