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 (3883,32454,4686,17009,45042,18446,44853,44775,18172,17839,43800,18185,44836,18981,44531,17904,44845,17351,44745,44669,17492,44768,6862,45517,44764,17848,13,18894,44765,18900,44685,14402,45515,44671,45043,17601,44855,44689,5259,39676,44866,45567,18353,9341,44711,18794,44863,45177,45561,17556,17092,13988,44767,45229,8753,4765,19078,24438,44865,18237,45516,17527,44687,44766,45518,24411,30986,44674,14622,44858)
Unknown column 'np.person' in 'where clause'