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 (18900,44868,30135,5259,24438,44861,18279,44856,44687,17981,34194,18185,44762,24412,17278,44848,37267,18688,22509,44685,44878,14402,45262,18430,6875,16885,17237,39676,5410,17556,18286,5993,17492,28313,45567,18572,18172,44869,17756,44867,16935,43800,44765,44764,45518,18648,44768,44865,13922,18996,17527,45421,45072,45561,17771,18427,45180,18981,45515,24441,44669,18237,17839,44866,44531,44775,44836,45286,24411,44837)
Unknown column 'np.person' in 'where clause'