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 (44711,45346,44685,45515,44836,17278,14402,43800,36472,45567,17092,18894,19057,6862,5259,44531,4686,17771,44671,17756,44861,37057,44768,18446,18286,44766,44863,44669,17601,3883,6609,9341,45286,5993,45043,24411,44848,18172,17904,17703,45277,39676,32454,13425,44674,30135,16935,44765,44866,18719,17009,17335,45561,44875,18572,44856,44739,28530,30963,6875,8753,34194,18301,45518,44849,44894,44865,45421,13988,44870)
Unknown column 'np.person' in 'where clause'