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 (37267,30135,45072,17351,5259,45421,13988,44762,44739,44867,44884,45277,17848,44870,31354,5410,44845,44745,45262,44861,18042,24438,45346,18286,44767,44878,44855,18719,17835,14402,44866,18172,17492,44856,45042,44685,13922,8753,18648,43800,44674,45286,17904,18185,44865,17009,17771,14622,44711,45561,13,24412,17657,45051,17981,17278,28530,44854,17703,44764,18279,44836,44640,44531,44687,44837,17527,3883,19057,13425)
Unknown column 'np.person' in 'where clause'