A Database Error Occurred

Error Number: 1066

Not unique table/alias: 'sp_categories_entries'

SELECT DISTINCT `sp_entries`.*, `field_id_169`, `field_id_170`, `field_id_171`, `field_id_172`, `field_id_173`, `field_id_174`, `field_id_175`, `field_id_176`, `field_id_177`, `sp_content_types`.`dynamic_route`, `sp_content_types`.`layout`, `sp_content_types`.`short_name` FROM (`sp_entries`) JOIN `sp_entries_data` ON `sp_entries`.`id` = `sp_entries_data`.`entry_id` JOIN `sp_content_types` ON `sp_entries`.`content_type_id` = `sp_content_types`.`id` JOIN `sp_categories_entries` ON `sp_entries`.`id` = `sp_categories_entries`.`entry_id` JOIN `sp_categories_entries` ON `sp_entries`.`id` = `sp_categories_entries`.`entry_id` JOIN `sp_categories` ON `sp_categories_entries`.`category_id` = `sp_categories`.`id` WHERE `status` = 'published' AND `short_name` IN ('shto_dokumente_publikime_psh') AND `category_id` IN ('2012') AND `sp_categories`.`url_title` = 'subcategory' AND `field_id_172` IS NOT NULL ORDER BY `created_date` DESC LIMIT 8

Filename: /home/prokuroriaks/public_html/application/modules/content/libraries/Entries_library.php

Line Number: 150