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 (18900,44711,44685,24412,44856,44768,6862,18572,18430,17839,44866,17237,13988,22509,24411,45042,17601,9341,13425,45518,5410,17527,17771,17335,18894,44865,44689,18996,14402,17009,44674,16935,45180,17756,45277,44858,45561,44870,17092,18688,18042,44764,44875,43800,44884,44878,44671,17755,8753,13,18286,17835,10402,44867,18719,44845,19078,3,36472,30135,45567,3883,18301,17556,13922,18446,44854,45072,44531,44853)
Unknown column 'np.person' in 'where clause'