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 (18353,44762,44687,44848,18894,37267,44884,45516,19057,5259,5410,17335,44878,17009,32454,44873,43800,44863,18286,6782,44711,16885,45561,18446,45051,44849,44858,28530,17756,17527,5993,44775,18042,44531,45043,9341,44836,44671,14402,44766,18900,18794,44767,45567,4765,18688,17601,13,13425,45421,45346,44868,3883,22509,24411,44689,16935,44739,17703,17755,39676,18981,44869,36472,37057,18172,44768,44867,45518,24412)
Unknown column 'np.person' in 'where clause'