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 (45177,44687,43800,6609,17335,18237,18894,44685,3883,44711,28530,13425,17756,44775,18650,44762,44865,16885,44767,44870,18430,44858,44669,44868,17839,44671,44848,17114,18042,4765,44674,45042,9341,18794,44894,44849,45262,3,44856,44837,17771,44768,18353,17835,37267,8753,17492,18279,36472,31354,24411,18446,44855,44764,18572,45277,18719,17556,22509,45515,44845,44861,24412,44739,44853,10402,5993,17657,18981,45286)
Unknown column 'np.person' in 'where clause'