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 (45051,17771,44685,28530,18652,44848,44853,18172,18981,44854,44739,17981,18301,44764,30135,37267,18650,17756,18900,44745,18430,19057,18279,45515,9341,22509,44775,45180,44855,18996,18185,14622,18237,17527,17492,44768,44875,45229,44765,44669,6862,5993,44845,45516,44531,32454,18286,45277,44863,5410,44894,16885,44674,44767,34194,45346,17351,44878,44762,44849,44861,44865,17335,44884,45072,18719,13988,17601,4765,13425)
Unknown column 'np.person' in 'where clause'