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 (45561,30963,18237,8753,5388,44851,44849,24441,44671,17657,13988,44866,17492,45517,13922,44868,18279,18900,5410,13425,44858,17755,18172,17839,44687,19057,44640,44878,44865,44894,17237,45177,44884,17527,44853,17904,44765,39676,44873,44848,18353,18446,16935,44867,45180,45051,30986,17771,44669,18996,24411,45043,44689,24412,18427,45515,6609,17601,17114,44837,34194,28530,44762,17835,44836,44531,44674,44767,17556,36472)
Unknown column 'np.person' in 'where clause'