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 (44674,37057,44861,17527,45518,17756,37267,44894,44868,10402,45180,17556,17492,6782,34194,44869,18286,28313,31354,17335,45042,44853,18688,18279,44685,17601,19078,17009,44687,17237,44671,5259,45567,44767,44765,44878,22509,44863,18719,18237,45515,18301,30986,17981,44865,44640,3,19057,14402,44845,44768,18427,44745,13988,44762,18430,18794,45072,28530,6875,24438,44531,17839,44851,32454,45043,44739,45561,13922,16885)
Unknown column 'np.person' in 'where clause'