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 (44531,24438,19057,30135,18650,44739,4765,18301,44849,44669,45567,45177,22509,44858,45518,3883,17278,39676,19078,13425,44884,6609,18353,44855,44711,16885,44775,45043,17114,18894,17527,44762,18688,5993,44894,36472,17839,9341,45229,18794,24411,14402,17237,13988,44845,45277,5259,45051,18652,44687,5388,18185,44766,44873,44853,44768,13,5410,18279,18427,8753,44764,43800,45421,17756,28530,17848,44867,44836,24412)
Unknown column 'np.person' in 'where clause'