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 (13922,44869,36472,24411,44878,18430,17009,44873,14622,4686,13425,34194,37057,45277,44745,31354,17839,44853,18286,19078,45262,44767,44739,18237,44861,45516,6862,22509,44867,18650,44764,44687,44689,5259,44845,45567,45051,17981,18900,9341,17601,24438,16935,45072,17835,17556,3,18981,45180,18794,10402,44685,45043,30986,44870,45286,44531,18446,6782,44875,6609,17114,44836,44863,44762,45518,28313,17657,3883,17527)
Unknown column 'np.person' in 'where clause'