A database query error has occurred.
Source URL: www.anniesarchive.com/list.html

Query: SELECT `patterns__categories`.`pattern_id` FROM `patterns__categories` JOIN `patterns` ON `patterns__categories`.`pattern_id` = `patterns`.`pattern_id` WHERE `patterns`.`status_id` = 'A' AND `patterns__categories`.`cat_id` IN ()

mysql_error(): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 7

Backtrace: Array
(
    [file] => /sites/www.anniesarchive.com/web/admin/lib/categories.php
    [line] => 496
    [function] => db_query
    [args] => Array
        (
            [0] => 
			SELECT 
				`patterns__categories`.`pattern_id` 
			FROM `patterns__categories` 
			JOIN `patterns` ON `patterns__categories`.`pattern_id` = `patterns`.`pattern_id` 
			WHERE 
				`patterns`.`status_id` = 'A' AND 
				`patterns__categories`.`cat_id` IN () 
		
            [1] => mysqli Object
                (
                    [affected_rows] => -1
                    [client_info] => mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
                    [client_version] => 50011
                    [connect_errno] => 0
                    [connect_error] => 
                    [errno] => 1064
                    [error] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 7
                    [error_list] => Array
                        (
                            [0] => Array
                                (
                                    [errno] => 1064
                                    [sqlstate] => 42000
                                    [error] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 7
                                )

                        )

                    [field_count] => 1
                    [host_info] => apchd-db01-slave via TCP/IP
                    [info] => 
                    [insert_id] => 0
                    [server_info] => 5.6.14-log
                    [server_version] => 50614
                    [stat] => Uptime: 4482552  Threads: 5  Questions: 1511399573  Slow queries: 2512  Opens: 3986  Flush tables: 1  Open tables: 2000  Queries per second avg: 337.173
                    [sqlstate] => 00000
                    [protocol_version] => 10
                    [thread_id] => 52694175
                    [warning_count] => 0
                )

        )

)