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 (17657,24411,18286,19078,18279,45421,44745,45561,18446,5993,28530,5259,45262,10402,44768,45051,43800,36472,44669,44863,37267,18430,3883,44894,17601,44865,6609,17278,44837,28313,18996,44845,45286,18981,44858,44873,45072,44531,18353,6875,24441,8753,9341,44765,44866,18650,18719,44671,34194,6862,18237,44836,14402,45180,44640,45042,13922,22509,5410,44875,39676,44766,18894,44689,17009,18648,45516,44764,45177,44853)
Unknown column 'np.person' in 'where clause'