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 (45515,18172,45561,44775,44739,44767,44861,45567,18237,36472,44765,17755,44764,44848,44894,44762,44766,13425,30963,45262,18427,24412,44851,45518,18353,44689,45180,44854,18286,18900,34194,18301,18279,44865,18996,44856,28530,44845,44768,22509,44873,13988,44866,16935,45229,5993,19057,17492,44687,17981,3,24438,45516,45517,37267,31354,17601,18430,44531,19078,4686,9341,6609,17839,17756,10402,44870,17237,18652,45051)
Unknown column 'np.person' in 'where clause'