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 (5388,44836,6782,4765,18688,22509,6609,18652,17351,44866,18719,30986,24412,17904,18279,45286,18353,18996,44775,44875,44894,18794,44711,18237,17981,44854,44762,18981,44531,44868,28313,44765,24441,44849,17756,30963,44674,44873,17755,13922,34194,44767,18900,18301,18572,44878,44848,44870,24438,45421,44835,19078,44768,45561,45518,45042,18894,17492,6862,32454,44739,44845,43800,44855,17009,30135,44869,19057,5410,5993)
Unknown column 'np.person' in 'where clause'