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 (6609,36472,5259,45051,44745,17848,17756,44873,24441,30135,3883,18279,24438,17835,18430,17492,18185,18650,44869,45286,44855,45517,44878,13922,45515,16885,18719,18572,17351,44870,6782,28313,17601,13988,44766,17703,45180,45516,18794,44865,22509,17278,17009,18301,6862,44764,44674,44848,18446,4686,19078,44762,6875,44867,28530,44866,45277,18172,44775,44765,30963,19057,44531,14402,44640,13425,39676,44671,44687,17839)
Unknown column 'np.person' in 'where clause'