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 (28530,45346,31354,18719,45286,18353,9341,24412,37267,3883,44674,18688,44687,17278,18446,6875,44849,44689,45229,17756,44836,45072,44866,44869,13988,44764,14402,44884,18042,18652,17771,17703,45043,45518,17835,17335,17848,5993,28313,36472,13,16935,18900,18185,18648,4686,17527,45515,45561,18237,44767,44745,18430,17755,45567,18894,19057,30963,30135,45262,5410,44640,44775,19078,17839,24411,44762,44853,45517,17556)
Unknown column 'np.person' in 'where clause'