How can you query posts by advance custom field when the value is a serialized array? [closed]

I would advise using the built-in ACF functions for this. Elliot has provided a full toolbox for you and documentation for all field types:

<?php

// Conditional statement (Single Value)   
if(get_field('page_layout') == "col_1")
{
    //...
}


//Conditional statement (Multiple Values)
if( in_array( 'col_1', get_field('page_layout') ) )
{
    //...
}
?>

Check out the ACF documentation:
http://www.advancedcustomfields.com/resources/select/