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 (30135,19057,45051,44858,18981,17904,17527,13,5410,18279,18996,44836,44762,17335,6782,32454,44711,43800,45515,44870,45262,44863,44851,44875,44835,37267,18794,44849,44837,39676,18237,17351,18185,44853,18688,4686,22509,44848,17237,45518,4765,44671,5388,18172,44766,18894,44640,18446,44739,3,17657,16935,31354,6862,28313,13922,17556,44868,10402,44884,14622,45286,14402,37057,18650,44531,18042,44764,5993,17755)
Unknown column 'np.person' in 'where clause'