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 (45180,45051,14402,30986,45567,19057,44739,5388,3883,44848,28530,18430,44531,18572,10402,17755,17556,18185,45229,17114,22509,18279,18688,17756,18650,45277,44765,24412,44851,24441,18427,13,18353,44768,4765,45517,4686,44866,5410,44764,45518,13922,17657,44894,18652,43800,28313,44836,32454,44845,44863,13988,30963,17981,37057,44861,17527,8753,44762,44855,44837,18446,44873,45286,45515,18996,17009,44685,44867,44835)
Unknown column 'np.person' in 'where clause'