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 (17771,44835,45229,17351,44765,45346,44669,18353,24441,6862,14402,45277,17839,44866,17492,4686,44836,3,37267,44867,44531,18286,13425,24438,24411,44687,17009,30963,18237,14622,18981,37057,44674,45072,44855,18446,4765,18794,44858,17114,44873,6875,44766,5410,44671,6609,28530,39676,44856,30135,44745,44868,13922,44884,17657,28313,44767,44865,36472,45042,45567,17335,18427,18900,44875,17848,16885,45518,45051,31354)
Unknown column 'np.person' in 'where clause'