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 (45072,44762,44861,18981,45518,18042,44878,45051,18185,9341,44849,14402,44674,44768,44869,17335,19057,44764,17904,3,5259,44711,22509,44687,17092,10402,44739,17755,44848,8753,18794,44865,18996,30963,44845,34194,44867,18572,43800,18650,28530,45561,45229,17601,44836,18353,17756,18894,13,44873,44837,44765,6862,24438,45516,18279,44866,44884,45262,44894,44875,44689,44863,24441,45567,5388,28313,16935,18301,16885)
Unknown column 'np.person' in 'where clause'