please tell me the error in args array

please tell me the error in this code.

    $args = array(
              'posts_per_page' => 5,
              'post_type' => 'organisation',
              'paged' => $paged,
              'meta_query' => array(
                  array(
                    'key'     => 'title',
                    'value'   => 'a',
                    'compare' => 'LIKE',
                  ),
                ),
                 );
   $query = new WP_Query($args);
            if ( $query->have_posts() ) 
{
echo 'have posts.';

}

Read more here: please tell me the error in args array

Leave a Reply

Your email address will not be published. Required fields are marked *