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 (44687,14402,45421,18794,18430,13922,17009,4765,44762,44836,30963,37267,18353,45346,44873,45567,44689,18719,6875,5259,28530,18286,44849,45517,44848,13,43800,44671,5993,44867,44868,45561,19078,45515,44711,45072,4686,45286,5410,45518,31354,17278,45177,18172,44739,45180,17756,17904,19057,44856,18279,13425,45277,36472,45262,5388,44855,18237,44531,18301,44854,44870,3,24411,44869,18894,44865,45042,17755,17556)
Unknown column 'np.person' in 'where clause'