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 (45516,5993,44884,18172,44764,18185,24412,18430,45051,18650,44858,45177,44870,14622,6782,17657,5388,44640,44868,45072,45518,36472,18279,13922,6862,17848,44849,17835,44854,17492,13425,44768,44853,24411,13,16885,17981,44762,28313,44531,44669,17527,17904,44867,44848,3883,6609,18353,3,30963,28530,18572,18286,44674,43800,44845,44873,4765,24441,44878,18894,17839,17556,44856,44866,45286,44855,6875,30135,24438)
Unknown column 'np.person' in 'where clause'