내 데이터베이스에서 follow-relation을 삭제하려고합니다. 하나의 쿼리를 사용하여 내가 따르는 코드와 반대 방향의 코드를 모두 제거하는 코드를 실행하고 싶습니다.sql : syntax error를 사용하여 contactslist의 follow-relation을 제거 하시겠습니까?
//profileId is the current user and contactsProfileId which user he/she follows
$sql = "
DELETE FROM contactlists
WHERE (profileId = '$profileId AND contactsProfileId = '$contactsProfileId')
OR (profileId = '$contactsProfileId' AND contactsProfileId = '$profileId')
";
확인 조금 장님이 있었다 – einstein